mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-21 00:47:11 +08:00
18 lines
215 B
Go
18 lines
215 B
Go
package main
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestCountEmptyLines(t *testing.T) {
|
|
emptyLines, err := countEmptyLines(strings.NewReader(
|
|
`foo
|
|
bar
|
|
|
|
baz
|
|
`))
|
|
// Test logic
|
|
_ = emptyLines
|
|
_ = err
|
|
}
|