Skip to content

Commit

Permalink
Fix invalid Example naming
Browse files Browse the repository at this point in the history
Go 1.24 testing now vets that examples name an actual identifier, so
these must be renamed to match, or specify a distinct suffix.
  • Loading branch information
QuLogic committed Jan 19, 2025
1 parent b61b82d commit 0a52221
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions issues/issue_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestIssueStoreWriteLog(t *testing.T) {

}

func ExampleIssueStoreDumpIssues() {
func ExampleIssueStore_DumpIssues() {
// Passes for dumping all issues, ignoring LogLevel
iS := NewIssueStore(LevelNone, true)
issue1 := Issue{
Expand All @@ -108,7 +108,7 @@ func ExampleIssueStoreDumpIssues() {
// >>>>>>>>>>>>>>>>>>>>>>>>
}

func ExampleIssueStorePrintDocumentIssues() {
func ExampleIssueStore_PrintDocumentIssues() {
iS := NewIssueStore(LevelError, false)
doc := htmldoc.Document{
SitePath: "dir/page.html",
Expand All @@ -126,7 +126,7 @@ func ExampleIssueStorePrintDocumentIssues() {
// test1 --- dir/page.html --> <nil>
}

func ExampleIssueStorePrintDocumentIssuesEmpty() {
func ExampleIssueStore_PrintDocumentIssues_empty() {
iS := NewIssueStore(LevelError, false)
doc := htmldoc.Document{
SitePath: "dir/page.html",
Expand Down
4 changes: 2 additions & 2 deletions issues/issue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestIssueSecondary(t *testing.T) {
assert.Equals(t, "issue1 secondary", issue1.secondary(), "http://example.com")
}

func ExampleIssuePrintLogLevel() {
func ExampleIssue_print_logLevel() {
doc := htmldoc.Document{
SitePath: "dir/doc.html",
}
Expand Down Expand Up @@ -84,7 +84,7 @@ func ExampleIssuePrintLogLevel() {

}

func ExampleIssuePrintLogAll() {
func ExampleIssue_print_logAll() {
doc := htmldoc.Document{
SitePath: "dir/doc.html",
}
Expand Down

0 comments on commit 0a52221

Please sign in to comment.