MCPcopy Create free account
hub / github.com/google/gapid / TestNumeric

Function TestNumeric

core/text/parse/reader_test.go:51–58  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func TestNumeric(t *testing.T) {
52 assert := assert.To(t)
53 for _, test := range numericTests {
54 r := parse.NewReader("reader_test.api", test.in)
55 assert.For("kind").Add("in", test.in).That(r.Numeric()).Equals(test.outKind)
56 assert.For("token").Add("in", test.in).That(r.Token().String()).Equals(test.outToken)
57 }
58}

Callers

nothing calls this directly

Calls 8

NumericMethod · 0.95
TokenMethod · 0.95
ThatMethod · 0.80
ForMethod · 0.80
NewReaderMethod · 0.65
EqualsMethod · 0.65
AddMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected