File tree Expand file tree Collapse file tree 8 files changed +59
-59
lines changed Expand file tree Collapse file tree 8 files changed +59
-59
lines changed Original file line number Diff line number Diff line change 1
1
package makesample_test
2
2
3
3
import (
4
- "testing "
5
- "makesample "
4
+ "makesample "
5
+ "testing "
6
6
)
7
7
8
8
// Note because this is a test we do NOT expect this to be extracted.
9
9
func TestTestMe (t * testing.T ) {
10
10
11
- publicResult := makesample .PublicFunction ()
12
- if publicResult != 1 {
13
- t .Errorf ("Expected 1, got %d" , publicResult )
14
- }
11
+ publicResult := makesample .PublicFunction ()
12
+ if publicResult != 1 {
13
+ t .Errorf ("Expected 1, got %d" , publicResult )
14
+ }
15
15
16
16
}
Original file line number Diff line number Diff line change 1
1
package makesample
2
2
3
3
import (
4
- "testing"
4
+ "testing"
5
5
)
6
6
7
7
func TestTestMe (t * testing.T ) {
8
8
9
- // Note because this is a test we do NOT expect this to be extracted.
10
- publicResult := PublicFunction ()
11
- if publicResult != 1 {
12
- t .Errorf ("Expected 1, got %d" , publicResult )
13
- }
9
+ // Note because this is a test we do NOT expect this to be extracted.
10
+ publicResult := PublicFunction ()
11
+ if publicResult != 1 {
12
+ t .Errorf ("Expected 1, got %d" , publicResult )
13
+ }
14
14
15
15
}
Original file line number Diff line number Diff line change 1
1
package testsample_test
2
2
3
3
import (
4
- "testing"
5
- "testsample"
4
+ "testing"
5
+ "testsample"
6
6
)
7
7
8
8
func TestTestMe (t * testing.T ) {
9
9
10
- publicResult := testsample .PublicFunction ()
11
- if publicResult != 1 {
12
- t .Errorf ("Expected 1, got %d" , publicResult )
13
- }
10
+ publicResult := testsample .PublicFunction ()
11
+ if publicResult != 1 {
12
+ t .Errorf ("Expected 1, got %d" , publicResult )
13
+ }
14
14
15
15
}
Original file line number Diff line number Diff line change 1
1
package testsample
2
2
3
3
import (
4
- "testing"
4
+ "testing"
5
5
)
6
6
7
7
func TestTestMe (t * testing.T ) {
8
8
9
- publicResult := PublicFunction ()
10
- if publicResult != 1 {
11
- t .Errorf ("Expected 1, got %d" , publicResult )
12
- }
9
+ publicResult := PublicFunction ()
10
+ if publicResult != 1 {
11
+ t .Errorf ("Expected 1, got %d" , publicResult )
12
+ }
13
13
14
- privateResult := privateFunction ()
15
- if privateResult != 2 {
16
- t .Errorf ("Expected 2, got %d" , privateResult )
17
- }
14
+ privateResult := privateFunction ()
15
+ if privateResult != 2 {
16
+ t .Errorf ("Expected 2, got %d" , privateResult )
17
+ }
18
18
19
19
}
Original file line number Diff line number Diff line change 1
1
package testsample_test
2
2
3
3
import (
4
- "testing"
5
- "testsample"
4
+ "testing"
5
+ "testsample"
6
6
)
7
7
8
8
func TestTestMe (t * testing.T ) {
9
9
10
- publicResult := testsample .PublicFunction ()
11
- if publicResult != 1 {
12
- t .Errorf ("Expected 1, got %d" , publicResult )
13
- }
10
+ publicResult := testsample .PublicFunction ()
11
+ if publicResult != 1 {
12
+ t .Errorf ("Expected 1, got %d" , publicResult )
13
+ }
14
14
15
15
}
Original file line number Diff line number Diff line change 1
1
package testsample
2
2
3
3
import (
4
- "testing"
4
+ "testing"
5
5
)
6
6
7
7
func TestTestMe (t * testing.T ) {
8
8
9
- publicResult := PublicFunction ()
10
- if publicResult != 1 {
11
- t .Errorf ("Expected 1, got %d" , publicResult )
12
- }
9
+ publicResult := PublicFunction ()
10
+ if publicResult != 1 {
11
+ t .Errorf ("Expected 1, got %d" , publicResult )
12
+ }
13
13
14
- privateResult := privateFunction ()
15
- if privateResult != 2 {
16
- t .Errorf ("Expected 2, got %d" , privateResult )
17
- }
14
+ privateResult := privateFunction ()
15
+ if privateResult != 2 {
16
+ t .Errorf ("Expected 2, got %d" , privateResult )
17
+ }
18
18
19
19
}
Original file line number Diff line number Diff line change 1
1
package testsample_test
2
2
3
3
import (
4
- "testing"
5
- "testsample"
4
+ "testing"
5
+ "testsample"
6
6
)
7
7
8
8
func TestTestMe (t * testing.T ) {
9
9
10
- // Note because this is a test we do NOT expect it to be extracted
11
- publicResult := testsample .PublicFunction ()
12
- if publicResult != 1 {
13
- t .Errorf ("Expected 1, got %d" , publicResult )
14
- }
10
+ // Note because this is a test we do NOT expect it to be extracted
11
+ publicResult := testsample .PublicFunction ()
12
+ if publicResult != 1 {
13
+ t .Errorf ("Expected 1, got %d" , publicResult )
14
+ }
15
15
16
16
}
Original file line number Diff line number Diff line change 1
1
package testsample
2
2
3
3
import (
4
- "testing"
4
+ "testing"
5
5
)
6
6
7
7
func TestTestMe (t * testing.T ) {
8
8
9
- // Note because this is a test we do NOT expect it to be extracted
10
- publicResult := PublicFunction ()
11
- if publicResult != 1 {
12
- t .Errorf ("Expected 1, got %d" , publicResult )
13
- }
9
+ // Note because this is a test we do NOT expect it to be extracted
10
+ publicResult := PublicFunction ()
11
+ if publicResult != 1 {
12
+ t .Errorf ("Expected 1, got %d" , publicResult )
13
+ }
14
14
15
- privateResult := privateFunction ()
16
- if privateResult != 2 {
17
- t .Errorf ("Expected 2, got %d" , privateResult )
18
- }
15
+ privateResult := privateFunction ()
16
+ if privateResult != 2 {
17
+ t .Errorf ("Expected 2, got %d" , privateResult )
18
+ }
19
19
20
20
}
You can’t perform that action at this time.
0 commit comments