diff --git a/src/pkg/github/attribution_footer_lines_extra_test.go b/src/pkg/github/attribution_footer_lines_extra_test.go new file mode 100644 index 0000000000..759aac8982 --- /dev/null +++ b/src/pkg/github/attribution_footer_lines_extra_test.go @@ -0,0 +1,30 @@ +package github + +import ( + "strings" + "testing" +) + +// Extra regression cases for hivecommons/hive#19364 not covered by +// attribution_footer_lines_test.go. + +func TestParseAttributionTrailerFooterLinesExtraStrictCases(t *testing.T) { + for _, tc := range []struct{ name, body string }{ + {"unclosed-html-comment", "Done\n\n" + footerLinesTrailer + "\n\n