Skip to content

Commit 5933773

Browse files
Code is ready for the chapter.
1 parent 6f6d559 commit 5933773

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎chapter9/listing04/example04_example_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
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",

‎chapter9/listing04/example04_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

1313
const succeed = "\u2713"
1414
const failed = "\u2717"
1515

1616
func init() {
17-
ex3.Routes()
17+
ex.Routes()
1818
}
1919

2020
// TestDownload tests if download web content is working.

‎chapter9/listing05/listing05.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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

45
const rows = 64
56

‎chapter9/listing05/listing05_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
import "testing"
77

0 commit comments

Comments
 (0)