mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-11 09:46:37 +08:00
refactor(backend): rename OpenFlare directory to lowercase openflare
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// Copyright 2026 Arctel.net
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package protocol
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestTOMLQuote(t *testing.T) {
|
||||
cases := map[string]string{
|
||||
`plain`: `"plain"`,
|
||||
`a"b`: `"a\"b"`,
|
||||
`a\b`: `"a\\b"`,
|
||||
"injection\"\n": `"injection\"\n"`,
|
||||
"": `""`,
|
||||
"a\tb": `"a\tb"`,
|
||||
}
|
||||
for in, want := range cases {
|
||||
if got := TOMLQuote(in); got != want {
|
||||
t.Errorf("TOMLQuote(%q) = %q, want %q", in, got, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user