diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-03 02:59:43 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-03 02:59:43 +0900 |
| commit | 1b5ecd9eaf3289d164d8ed1bce6013e0e4ef8e86 (patch) | |
| tree | 047fe5fabdfb37d5c0088f7f572cebc8b13853bb /vfs/mangle_test.go | |
| parent | 82561d62b66f17c05604e87f18187bb3a91f00d2 (diff) | |
container: move out of toplevel
This allows slightly easier use of the vanity url. This also provides some disambiguation between low level containers and hakurei app containers.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'vfs/mangle_test.go')
| -rw-r--r-- | vfs/mangle_test.go | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vfs/mangle_test.go b/vfs/mangle_test.go deleted file mode 100644 index 54af8fbf..00000000 --- a/vfs/mangle_test.go +++ /dev/null @@ -1,27 +0,0 @@ -package vfs_test - -import ( - "testing" - - "git.gensokyo.uk/security/hakurei/vfs" -) - -func TestUnmangle(t *testing.T) { - testCases := []struct { - want string - sample string - }{ - {`\, `, `\134\054\040`}, - {`(10) source -- maybe empty string`, `(10)\040source\040--\040maybe empty string`}, - } - - for _, tc := range testCases { - t.Run(tc.want, func(t *testing.T) { - got := vfs.Unmangle(tc.sample) - if got != tc.want { - t.Errorf("Unmangle: %q, want %q", - got, tc.want) - } - }) - } -} |
