Skip to content

Commit e795b56

Browse files
Fixed comments for the code.
1 parent 5933773 commit e795b56

7 files changed

Lines changed: 8 additions & 5 deletions

File tree

‎chapter9/listing01/listing01_test.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Sample test to show how to write a basic unit test.
12
package listing01
23

34
import (

‎chapter9/listing02/listing02_test.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Sample test to show how to write a basic unit table test.
12
package listing02
23

34
import (

‎chapter9/listing03/listing03_test.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Sample test to show how to mock an HTTP GET call internally.
12
package listing03
23

34
import (

‎chapter9/listing04/example04.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This sample code implement a web service.
1+
// This sample code implement a simple web service.
22
package main
33

44
import (

‎chapter9/listing04/example04_example_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Sample example test for the LogResponse function.
1+
// Sample test to show how to write a basic example test.
22
package main_test
33

44
import (

‎chapter9/listing04/example04_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Sample unit test for testing an internal endpoint.
1+
// Sample test to show how to test the execution of an internal endpoint.
22
package main_test
33

44
import (
@@ -17,7 +17,7 @@ func init() {
1717
ex.Routes()
1818
}
1919

20-
// TestDownload tests if download web content is working.
20+
// TestSendJSON testing the sendjson internal endpoint.
2121
func TestSendJSON(t *testing.T) {
2222
t.Log("Given the need to test the SendJSON endpoint.")
2323
{

‎chapter9/listing05/listing05_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// go test -run=XXX -bench=.
22

3-
// This sample test demonstrates how to write a benchmark test.
3+
// Sample test to show how to write benchmark tests.
44
package listing05
55

66
import "testing"

0 commit comments

Comments
 (0)