Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1257 from hs0210/work
Browse files Browse the repository at this point in the history
test: add unit test case for func ConstructRangeStr
  • Loading branch information
lowzj authored Mar 24, 2020
2 parents d7d4ff4 + d9d4c92 commit 7179243
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/httputils/http_util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ func (s *HTTPUtilTestSuite) TestConcurrencyPostJson(c *check.C) {
wg.Wait()
}

func (s *HTTPUtilTestSuite) TestConstructRangeStr(c *check.C) {
c.Check(ConstructRangeStr("200-1000"), check.DeepEquals, "bytes=200-1000")
}

// ----------------------------------------------------------------------------
// helper functions and structures

Expand Down

0 comments on commit 7179243

Please sign in to comment.