官术网_书友最值得收藏!

Running tests in nil_test.go

We run three tests, where two test cases will pass and one will fail. This way we can see the tick mark and cross mark in action:

$ go test -v ./nil_test.go                                          
=== RUN   TestServer                       
=== RUN   TestServer/Request_correct_URL   
=== RUN   TestServer/Request_incorrect_URL 
=== RUN   TestServer/Fail_for_no_reason    
--- FAIL: TestServer (0.00s)               
  --- PASS: TestServer/Request_correct_URL (0.00s)                                  
        nil_test.go:55: Got 1. == Got 1.  
  --- PASS: TestServer/Request_incorrect_URL (0.00s)                                
        nil_test.go:55: Got None. == Got None. 
--- FAIL: TestServer/Fail_for_no_reason (0.00s)
nil_test.go:59: + != -
FAIL
exit status 1
FAIL command-line-arguments 0.003s
主站蜘蛛池模板: 化隆| 工布江达县| 康保县| 客服| 宁晋县| 股票| 霍林郭勒市| 基隆市| 湘潭市| 肇源县| 门头沟区| 新民市| 南充市| 南丰县| 锡林浩特市| 武宣县| 曲水县| 准格尔旗| 石城县| 大同县| 固安县| 城步| 邵阳市| 穆棱市| 淳安县| 盱眙县| 福泉市| 休宁县| 平乡县| 广昌县| 龙岩市| 高平市| 台东县| 甘孜县| 九江市| 揭东县| 永登县| 灵武市| 安乡县| 当雄县| 金坛市|