File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -18,25 +18,22 @@ func TestModule7gogenerate(t *testing.T) {
18
18
19
19
func TestModule7Import (t * testing.T ) {
20
20
found := OpenFileAndFindString ("module7_code.go" , "import (" )
21
-
22
21
if ! found {
23
22
t .Errorf ("import not found" )
23
+ return
24
24
}
25
- }
26
-
27
- func TestModule7ImportFmt (t * testing.T ) {
28
- found := OpenFileAndFindString ("module7_code.go" , " \" fmt\" " )
29
25
26
+ found = OpenFileAndFindString ("module7_code.go" , " \" fmt\" " )
30
27
if ! found {
31
28
t .Errorf ("package 'fmt' not imported" )
29
+ return
32
30
}
33
- }
34
31
35
- func TestModule7ImportRuntime (t * testing.T ) {
36
- found := OpenFileAndFindString ("module7_code.go" , " \" runtime\" " )
32
+ found = OpenFileAndFindString ("module7_code.go" , " \" runtime\" " )
37
33
38
34
if ! found {
39
35
t .Errorf ("package 'runtime' not imported" )
36
+ return
40
37
}
41
38
}
42
39
You can’t perform that action at this time.
0 commit comments