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

Method TestNewParserFromString

internal/revision/parser_test.go:22–26  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

20}
21
22func (s *ParserSuite) TestNewParserFromString(c *C) {
23 p := NewParserFromString("test")
24
25 c.Assert(p, FitsTypeOf, &Parser{})
26}
27
28func (s *ParserSuite) TestScan(c *C) {
29 parser := NewParser(bytes.NewBufferString("Hello world !"))

Callers

nothing calls this directly

Calls 1

NewParserFromStringFunction · 0.85

Tested by

no test coverage detected