Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid Example naming #238

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading