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 11package makesample_test
22
33import (
4- "testing "
5- "makesample "
4+ "makesample "
5+ "testing "
66)
77
88// Note because this is a test we do NOT expect this to be extracted.
99func TestTestMe (t * testing.T ) {
1010
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+ }
1515
1616}
Original file line number Diff line number Diff line change 11package makesample
22
33import (
4- "testing"
4+ "testing"
55)
66
77func TestTestMe (t * testing.T ) {
88
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+ }
1414
1515}
Original file line number Diff line number Diff line change 11package testsample_test
22
33import (
4- "testing"
5- "testsample"
4+ "testing"
5+ "testsample"
66)
77
88func TestTestMe (t * testing.T ) {
99
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+ }
1414
1515}
Original file line number Diff line number Diff line change 11package testsample
22
33import (
4- "testing"
4+ "testing"
55)
66
77func TestTestMe (t * testing.T ) {
88
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+ }
1313
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+ }
1818
1919}
Original file line number Diff line number Diff line change 11package testsample_test
22
33import (
4- "testing"
5- "testsample"
4+ "testing"
5+ "testsample"
66)
77
88func TestTestMe (t * testing.T ) {
99
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+ }
1414
1515}
Original file line number Diff line number Diff line change 11package testsample
22
33import (
4- "testing"
4+ "testing"
55)
66
77func TestTestMe (t * testing.T ) {
88
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+ }
1313
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+ }
1818
1919}
Original file line number Diff line number Diff line change 11package testsample_test
22
33import (
4- "testing"
5- "testsample"
4+ "testing"
5+ "testsample"
66)
77
88func TestTestMe (t * testing.T ) {
99
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+ }
1515
1616}
Original file line number Diff line number Diff line change 11package testsample
22
33import (
4- "testing"
4+ "testing"
55)
66
77func TestTestMe (t * testing.T ) {
88
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+ }
1414
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+ }
1919
2020}
You can’t perform that action at this time.
0 commit comments