MCPcopy Create free account
hub / github.com/gavv/httpexpect / TestNumber_Raw

Function TestNumber_Raw

number_test.go:70–77  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

68}
69
70func TestNumber_Raw(t *testing.T) {
71 reporter := newMockReporter(t)
72
73 value := NewNumber(reporter, 123.0)
74
75 assert.Equal(t, 123.0, value.Raw())
76 value.chain.assert(t, success)
77}
78
79func TestNumber_Decode(t *testing.T) {
80 t.Run("target is empty interface", func(t *testing.T) {

Callers

nothing calls this directly

Calls 5

RawMethod · 0.95
newMockReporterFunction · 0.85
NewNumberFunction · 0.85
assertMethod · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…