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: output writer test #434

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion utility/output_writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func TestWriteCustomOutput(t *testing.T) {
}

// TestExampleFWriteCustomOutput shows how to use the WriteCustomOutput function
func TestExampleFWriteCustomOutput() {
func TestExampleFWriteCustomOutput(t *testing.T) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The func name must start with Example and not with Test if you want to use the output. You don't need the t *testing.T argument.

ow := NewOutputWriter()
// Write 3 lines and assert correct result
ow.StartLine()
Expand Down