(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func 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 | |
| 27 | func TestParseBoolean(t *testing.T) { |
| 28 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…