MCPcopy Index your code
hub / github.com/go-git/go-git / TestReadControl

Method TestReadControl

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

Source from the content-addressed store, hash-verified

86}
87
88func (s *ScannerSuite) TestReadControl(c *C) {
89 scanner := newScanner(bytes.NewBufferString(""))
90 tok, data, err := scanner.scan()
91
92 c.Assert(err, Equals, nil)
93 c.Assert(data, Equals, "\x01")
94 c.Assert(tok, Equals, control)
95}
96
97func (s *ScannerSuite) TestReadOpenBrace(c *C) {
98 scanner := newScanner(bytes.NewBufferString("{"))

Callers

nothing calls this directly

Calls 2

newScannerFunction · 0.85
scanMethod · 0.45

Tested by

no test coverage detected