Commit Graph

5 Commits

Author SHA1 Message Date
yaziming
e10d8fd996 refactor(backend): Use more efficient bytes to string methods and remove unnecessary type conversions
detail:
    1. add utils.BytesToString function instead of string() convert bytes to string.
    2. use bytes.NewReader instead of strings.NewReader(string(sb)).
    3. use w.Body.Bytes() instead of []byte(w.Body.String()).
2019-09-03 15:17:32 +08:00
hantmac
cb3d7263b2 bug fix:fix go test ./.. bug 2019-09-03 12:47:18 +08:00
hantmac
2c0ac66cb1 Add unit test for task.go 2019-08-24 13:39:06 +08:00
hantmac
44e98a56a3 unit test for stats.go 2019-08-23 20:28:11 +08:00
hantmac
87f1cebc3b modify unit test to use mock 2019-08-22 16:20:30 +08:00