MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / TestSyntaxAdapterWithoutNotes

Function TestSyntaxAdapterWithoutNotes

commit/parser_test.go:63–71  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

61}
62
63func TestSyntaxAdapterWithoutNotes(t *testing.T) {
64 c, err := commit.NewParser().Parse("feat: expose records\n")
65 if err != nil {
66 t.Fatal(err)
67 }
68 if len(c.Notes()) != 0 || c.Message() != "feat: expose records\n" {
69 t.Fatal("unexpected empty-footer result")
70 }
71}
72
73func TestSyntaxInspectionAdapter(t *testing.T) {
74 p := commit.NewParser()

Callers

nothing calls this directly

Calls 4

NewParserFunction · 0.92
ParseMethod · 0.65
NotesMethod · 0.65
MessageMethod · 0.65

Tested by

no test coverage detected