File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 "log"
66 "os"
77
8- ex3 "github.com/ArdanStudios/gotraining/09-testing/01-testing/example3 "
8+ ex "github.com/goinaction/code/chapter9/listing04 "
99)
1010
1111// ExampleLogResponse provides a basic example test example.
@@ -21,7 +21,7 @@ func ExampleLogResponse() {
2121 Email : "bill@ardanstudios.com" ,
2222 }
2323
24- ex3 .LogResponse (& u )
24+ ex .LogResponse (& u )
2525 // Output:
2626 // {
2727 // "Name": "Bill",
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import (
77 "net/http/httptest"
88 "testing"
99
10- ex3 "github.com/ArdanStudios/gotraining/09-testing/01-testing/example3 "
10+ ex "github.com/goinaction/code/chapter9/listing04 "
1111)
1212
1313const succeed = "\u2713 "
1414const failed = "\u2717 "
1515
1616func init () {
17- ex3 .Routes ()
17+ ex .Routes ()
1818}
1919
2020// TestDownload tests if download web content is working.
Original file line number Diff line number Diff line change 1- // Package listing04 implements two functions that traverse a matrix in different ways.
2- package listing04
1+ // Package listing05 implements two functions that traverse a
2+ // matrix in different ways.
3+ package listing05
34
45const rows = 64
56
Original file line number Diff line number Diff line change 11// go test -run=XXX -bench=.
22
33// This sample test demonstrates how to write a benchmark test.
4- package listing04
4+ package listing05
55
66import "testing"
77
You can’t perform that action at this time.
0 commit comments