MCPcopy Create free account
hub / github.com/aptly-dev/aptly / TestString

Method TestString

query/lex_test.go:42–48  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

40}
41
42func (s *LexerSuite) TestString(c *C) {
43 l, _ := lex("query", "package (<< 1.3)")
44
45 c.Check(l.Current().String(), Equals, "\"package\"")
46 l.Consume()
47 c.Check(l.Current().String(), Equals, "(")
48}
49
50func (s *LexerSuite) TestError(c *C) {
51 l, _ := lex("query", "'package")

Callers

nothing calls this directly

Calls 5

lexFunction · 0.85
CurrentMethod · 0.80
ConsumeMethod · 0.80
StringMethod · 0.65
CheckMethod · 0.45

Tested by

no test coverage detected