diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Trim the comments and dead code across the tree
Diffstat (limited to 'tests/extensions')
-rw-r--r--tests/extensions/harness.lua8
-rw-r--r--tests/extensions/lib.sh5
2 files changed, 3 insertions, 10 deletions
diff --git a/tests/extensions/harness.lua b/tests/extensions/harness.lua
index 9085010..d0299e3 100644
--- a/tests/extensions/harness.lua
+++ b/tests/extensions/harness.lua
@@ -118,9 +118,7 @@ end
-- Deterministic bytes standing in for a digest, built from djb2 style lanes
-- in plain arithmetic so they compute the same on every Lua version. Not
--- remotely cryptographic, and enough for what the checks assert, that equal
--- input hashes equal, different input hashes different and a tampered
--- payload no longer verifies.
+-- cryptographic, just stable and collision-shy enough for the checks.
local function fake_digest_bytes(text)
local lanes = { 5381, 52711, 1313, 7919 }
for i = 1, #text do
@@ -140,8 +138,6 @@ local function fake_digest_bytes(text)
return table.concat(bytes)
end
-harness.fake_digest_bytes = fake_digest_bytes
-
-- The slice of the luaossl digest interface the avatar filters use.
function harness.stub_digest()
harness.preload("openssl.digest", {
@@ -168,8 +164,6 @@ local function fake_crypt(password, setting)
return prefix .. password
end
-harness.fake_crypt = fake_crypt
-
-- The slices of luaossl and luaposix the auth filters use. The link and
-- unlink stubs serve the secret creation path, which the auth checks bypass
-- by replacing get_secret, so they only have to exist.
diff --git a/tests/extensions/lib.sh b/tests/extensions/lib.sh
index 1b31a4b..f472faf 100644
--- a/tests/extensions/lib.sh
+++ b/tests/extensions/lib.sh
@@ -15,9 +15,8 @@ ext_lua_version() {
}
# Prints the interpreters found on the path whose version falls between 5.1
-# and the given 5.x ceiling, one per line, since each extension states the
-# versions it runs on and a test must not fail a script on a version it never
-# claimed.
+# and the given 5.x ceiling, one per line, so a script is never failed on a
+# version it never claimed to run on.
ext_lua_interpreters() {
ext_lua_ceiling=$1
for ext_lua_bin in luajit lua5.1 lua5.2 lua5.3 lua5.4 lua5.5 lua