kevinsqi / learn-go-with-tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Learn Go with Tests

https://github.com/quii/learn-go-with-tests

Sections

Sum:

  • Use reflect.DeepEqual to compare arrays/slices

Repeat:

  • Write benchmark test with func BenchmarkFuncname(b *testing.B)
  • Run with go test -bench=.

Wallet:

  • Use errcheck to detect what errors are not covered by tests

Map:

About


Languages

Language:Go 100.0%