Skip to content

Commit c8d6c1f

Browse files
authored
Remove testify (#209)
1 parent 66b67c6 commit c8d6c1f

File tree

4 files changed

+6
-33
lines changed

4 files changed

+6
-33
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ It includes:
2121
- dependency management using [Go Modules](https://github.com/golang/go/wiki/Modules),
2222
- code formatting using [gofumpt](https://github.com/mvdan/gofumpt),
2323
- linting with [golangci-lint](https://github.com/golangci/golangci-lint),
24-
- unit testing with [testify](https://github.com/stretchr/testify),
25-
[go-acc](https://github.com/ory/go-acc),
24+
- unit testing with [go-acc](https://github.com/ory/go-acc),
2625
[race detector](https://blog.golang.org/race-detector),
2726
code covarage [HTML report](https://blog.golang.org/cover)
2827
and [Codecov report](https://codecov.io/),

go.mod

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
11
module github.com/golang-templates/seed
22

33
go 1.18
4-
5-
require github.com/stretchr/testify v1.8.0
6-
7-
require (
8-
github.com/davecgh/go-spew v1.1.1 // indirect
9-
github.com/pmezard/go-difflib v1.0.0 // indirect
10-
gopkg.in/yaml.v3 v3.0.1 // indirect
11-
)

go.sum

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

main_test.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
package main
22

3-
import (
4-
"testing"
5-
6-
"github.com/stretchr/testify/assert"
7-
)
3+
import "testing"
84

95
func Test_greet(t *testing.T) {
10-
got := greet()
11-
12-
assert.Equal(t, "Hi!", got, "should properly greet")
6+
want := "Hi!"
7+
if got := greet(); got != want {
8+
t.Errorf("greet() = %v, want %v", got, want)
9+
}
1310
}

0 commit comments

Comments
 (0)