MCPcopy Index your code
hub / github.com/dunglas/httpsfv / TestMarshalBoolean

Function TestMarshalBoolean

boolean_test.go:8–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestMarshalBoolean(t *testing.T) {
9 t.Parallel()
10
11 var b strings.Builder
12
13 _ = marshalBoolean(&b, true)
14
15 if b.String() != "?1" {
16 t.Error("Invalid marshaling")
17 }
18
19 b.Reset()
20 _ = marshalBoolean(&b, false)
21
22 if b.String() != "?0" {
23 t.Error("Invalid marshaling")
24 }
25}
26
27func TestParseBoolean(t *testing.T) {
28 t.Parallel()

Callers

nothing calls this directly

Calls 2

marshalBooleanFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…