- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testUnquote (0.1 sec)
-
src/strconv/quote_test.go
"\"\n\"", "\"\\n\n\"", "'\n'", `"\udead"`, `"\ud83d\ude4f"`, } func TestUnquote(t *testing.T) { for _, tt := range unquotetests { testUnquote(t, tt.in, tt.out, nil) } for _, tt := range quotetests { testUnquote(t, tt.out, tt.in, nil) } for _, s := range misquoted { testUnquote(t, s, "", ErrSyntax) } } // Issue 23685: invalid UTF-8 should not go through the fast path.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 31 20:37:15 UTC 2022 - 9.6K bytes - Viewed (0) -
pkg/util/shellescape/quote_test.go
// See the License for the specific language governing permissions and // limitations under the License. package shellescape import ( "os/exec" "strings" "testing" ) func TestQuote(t *testing.T) { testCases := []string{ `{"key": "value"}`, `it's going to need single quotes`, "", "no issues here", } for _, original := range testCases {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 07 20:37:19 UTC 2020 - 1.1K bytes - Viewed (0)