MCPcopy
hub / github.com/gofiber/fiber / Test_App_quoteString_DetachesFromPooledBuffer

Function Test_App_quoteString_DetachesFromPooledBuffer

helpers_test.go:1641–1652  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1639}
1640
1641func Test_App_quoteString_DetachesFromPooledBuffer(t *testing.T) {
1642 t.Parallel()
1643
1644 app := New()
1645
1646 first := app.quoteString("a b")
1647 second := app.quoteString("x y")
1648
1649 require.Equal(t, "a+b", first)
1650 require.Equal(t, "x+y", second)
1651 require.Equal(t, "a+b", first)
1652}
1653
1654func Test_App_quoteRawString_DetachesFromPooledBuffer(t *testing.T) {
1655 t.Parallel()

Callers

nothing calls this directly

Calls 2

quoteStringMethod · 0.80
NewFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…