-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwords_in_file_test.go
More file actions
35 lines (29 loc) · 888 Bytes
/
words_in_file_test.go
File metadata and controls
35 lines (29 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// -----------------------------------------------------------------------------
// CMDX Utilities Suite cmdx/[words_in_file_test.go]
// (c) balarabe@protonmail.com License: GPLv3
// -----------------------------------------------------------------------------
package main
// to test all items in words_in_file.go use:
// go test --run Test_wdif_
//
// to generate a test coverage report for the whole module use:
// go test -coverprofile cover.out
// go tool cover -html=cover.out
import (
"testing"
"github.com/balacode/zr"
)
// go test --run Test_wdif_wordsInFile_
func Test_wdif_wordsInFile_(t *testing.T) {
zr.TBegin(t)
// wordsInFile(cmd Command, args []string)
//
test := func(
// in:
cmd Command, args []string,
) {
wordsInFile(cmd, args)
}
test(Command{}, []string{})
}
// end