????????????????????????go?????????????????£????п???go test  xx_test.go??????е???????????????????????????д?????????????????????????н????????????????

???????????
?????????????go test utilfile_test.go???????κ???????????????????????????????????????£??????go?????????????????????????????к????????
???????磺
????1?????????????xx_test.go????
????2????????????Test[^a-z]???
????3?????????????? t *testing.T
??????????? 2 ?????д?????????????????????????????????????СС???????????????????
??????????????go test?????????????
??????????磺
????go test [-c] [-i] [build flags] [packages] [flags for test binary]
?????????????
????-c : ????go test???????е???????????????????в????
????-i : ??????????????package??????????в????
????????build flags??????go help build????Щ????????й?????????????????????????????
????????packages??????go help packages????Щ??????????????????????
????????flags for test binary??????go help testflag????Щ??go test?????о????????????
????-test.v : ????????????????????????????????????????????м????????????????????????????
????-test.run pattern: ?????Щ???????????
????-test.bench patten: ?????Щ???????????
????-test.benchmem : ?????????????????????????
????-test.benchtime t : ??????????е?????????1s
????-test.cpuprofile cpu.out : ??????cpu??????????
????-test.memprofile mem.out : ???????????????????
????-test.blockprofile block.out : ?????????goroutine????????????????
????-test.memprofilerate n : ????????????????????????????????????????????????????????????????????????profile?????sample?????????С????????????512 * 1024???????????????1???????????????????profile???и????????????profile??sample????????????????0???????????????
????????????????memprofilerate=1??GOGC=off??????????????????????????????й??
????-test.blockprofilerate n: ???????????????goroutine??????????????????????????????-test.blockprofilerate=1????????????????
????-test.parallel n : ?????????????cpu??????????GOMAXPROCS??
????-test.timeout t : ????????????????????t???????panic
????-test.cpu 1??2??4 : ????????????ЩCPU???棬?????????1????λ???????nginx??nginx_worker_cpu_affinity?????????
????-test.short : ????Щ?????????????????????????????