MCPcopy Create free account
hub / github.com/go-git/go-git / TestReadTokenError

Method TestReadTokenError

internal/revision/scanner_test.go:187–194  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

185}
186
187func (s *ScannerSuite) TestReadTokenError(c *C) {
188 scanner := newScanner(bytes.NewBufferString("`"))
189 tok, data, err := scanner.scan()
190
191 c.Assert(err, Equals, nil)
192 c.Assert(data, Equals, "`")
193 c.Assert(tok, Equals, tokenError)
194}

Callers

nothing calls this directly

Calls 2

newScannerFunction · 0.85
scanMethod · 0.45

Tested by

no test coverage detected