Skip to content

Commit f99a985

Browse files
endigmaatombender
authored andcommitted
Move all tests to ./tests/ with new Go module to isolate testing
dependencies
1 parent 4fde30c commit f99a985

34 files changed

+133
-174
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ jobs:
77
scheduled:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Check out this repo
11-
uses: actions/checkout@v2
12-
- name: Set up Go
13-
uses: actions/setup-go@v2
14-
with: {go-version: '^1.16'}
15-
- name: Download dependencies
16-
run: go mod download
17-
- name: Build
18-
run: go build ./...
19-
- name: Test
20-
run: go test ./...
10+
- name: Check out this repo
11+
uses: actions/checkout@v2
12+
- name: Set up Go
13+
uses: actions/setup-go@v2
14+
with: { go-version: "^1.16" }
15+
- name: Download dependencies
16+
run: go mod download
17+
- name: Build
18+
run: go build ./...
19+
- name: Test
20+
working-directory: tests
21+
run: go test ./...

go.mod

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
module github.com/sanity-io/litter
22

33
go 1.16
4-
5-
require (
6-
github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b // indirect
7-
github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0 // indirect
8-
github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312
9-
)

go.sum

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b h1:XxMZvQZtTXpWMNWK82vdjCLCe7uGMFXdTsJH0v3Hkvw=
2-
github.com/davecgh/go-spew v0.0.0-20161028175848-04cdfd42973b/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3-
github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0 h1:GD+A8+e+wFkqje55/2fOVnZPkoDIu1VooBWfNrnY8Uo=
4-
github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5-
github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312 h1:UsFdQ3ZmlzS0BqZYGxvYaXvFGUbCmPGy8DM7qWJJiIQ=
6-
github.com/stretchr/testify v0.0.0-20161117074351-18a02ba4a312/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=

testdata/config_Compact.dump

Lines changed: 0 additions & 1 deletion
This file was deleted.

testdata/config_DisablePointerReplacement_circular.dump

Lines changed: 0 additions & 3 deletions
This file was deleted.

testdata/customDumper.dump

Lines changed: 0 additions & 15 deletions
This file was deleted.

testdata/nilIntefacesInStructs.dump

Lines changed: 0 additions & 10 deletions
This file was deleted.

testdata/pointerAliasing.dump

Lines changed: 0 additions & 12 deletions
This file was deleted.

testdata/recursive_maps.dump

Lines changed: 0 additions & 12 deletions
This file was deleted.

testdata/unexported.dump

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)