Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 1bf835f

Browse files
author
Max Schaefer
committed
Add tests.
1 parent d5c8570 commit 1bf835f

5 files changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
| hello2.go:0:0:0:0 | hello2.go | generated |
22
| hello.go:0:0:0:0 | hello.go | generated |
3+
| httptest.go:0:0:0:0 | httptest.go | test |
4+
| test1.go:0:0:0:0 | test1.go | test |
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
| test1.go:5:1:5:26 | function declaration |
2+
| test1.go:7:1:7:27 | function declaration |
3+
| test1.go:15:1:15:31 | function declaration |
4+
| test1.go:17:1:17:32 | function declaration |
5+
| test1.go:25:1:25:17 | function declaration |
6+
| test1.go:27:1:27:18 | function declaration |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import go
2+
3+
from TestCase tc
4+
select tc
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package main
2+
3+
import "net/http/httptest"
4+
5+
func setup(server *httptest.Server) {}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package main
2+
3+
import "testing"
4+
5+
func Test(t *testing.T) {} // test case
6+
7+
func Test2(t *testing.T) {} // test case
8+
9+
func TestMustHaveSingleParameter(t *testing.T, b bool) {} // not a test case
10+
11+
func TestParameterMustHaveCorrectType(b *testing.B) {} // not a test case
12+
13+
func TestsDoNotLookLikeThis(t *testing.T) {} // not a test case
14+
15+
func Benchmark(b *testing.B) {} // test case
16+
17+
func Benchmark2(b *testing.B) {} // test case
18+
19+
func BenchmarkMustHaveSingleParameter(b *testing.B, flag bool) {} // not a test case
20+
21+
func BenchmarkParameterMustHaveCorrectType(t *testing.T) {} // not a test case
22+
23+
func BenchmarksDoNotLookLikeThis(b *testing.B) {} // not a test case
24+
25+
func Example() {} // test case
26+
27+
func Example2() {} // test case
28+
29+
func ExampleMustNotHaveParameter(t *testing.T) {} // not a test case
30+
31+
func ExamplesDoNotLookLikeThis() {} // not a test case

0 commit comments

Comments
 (0)