MCPcopy Create free account
hub / github.com/Shopify/go-lua / TestStringLength

Function TestStringLength

go_test.go:23–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestStringLength(t *testing.T) {
24 s := "hello\x00world"
25 if len(s) != 11 {
26 t.Error("go doesn't count embedded nulls in string length")
27 }
28}
29
30func TestIsControl(t *testing.T) {
31 t.Skip()

Callers

nothing calls this directly

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…