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

Method Raw

number.go:51–53  ·  view source on GitHub ↗

Raw returns underlying value attached to Number. This is the value originally passed to NewNumber. Example: number := NewNumber(t, 123.4) assert.Equal(t, 123.4, number.Raw())

()

Source from the content-addressed store, hash-verified

49// number := NewNumber(t, 123.4)
50// assert.Equal(t, 123.4, number.Raw())
51func (n *Number) Raw() float64 {
52 return n.value
53}
54
55// Decode unmarshals the underlying value attached to the Number to a target variable.
56// target should be one of these:

Callers 1

TestNumber_RawFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestNumber_RawFunction · 0.76