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

Function TestHeaderFullStop_WithStop_Fail

test/rule_test.go:963–972  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

961}
962
963func TestHeaderFullStop_WithStop_Fail(t *testing.T) {
964 r := &rule.HeaderFullStopRule{}
965 if err := r.Apply(lint.RuleSetting{Argument: "."}); err != nil {
966 t.Fatal(err)
967 }
968 _, ok := r.Validate(&mockCommit{header: "feat: add new feature."})
969 if ok {
970 t.Error("header ending with '.' should fail")
971 }
972}
973
974func TestHeaderFullStop_CustomChar(t *testing.T) {
975 r := &rule.HeaderFullStopRule{}

Callers

nothing calls this directly

Calls 3

ApplyMethod · 0.95
ValidateMethod · 0.95
ErrorMethod · 0.80

Tested by

no test coverage detected