aboutsummaryrefslogtreecommitdiff
path: root/bytesconv_test.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-11 11:00:22 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2015-11-11 11:00:22 +0200
commit9735e0127b522eb1f6d0a25822347cac27b91826 (patch)
tree8fc4b9cc29473cd64dbef36994c19cad39e5a7bf /bytesconv_test.go
parentRemoved dubious Cache from RequestCtx - use sync.Pool instead (diff)
downloadfasthttp-9735e0127b522eb1f6d0a25822347cac27b91826.tar.gz
fasthttp-9735e0127b522eb1f6d0a25822347cac27b91826.tar.bz2
fasthttp-9735e0127b522eb1f6d0a25822347cac27b91826.zip
Exported ParseUint, ParseUfloat and AppendHTTPDate, which may be frequently used in http apps
Diffstat (limited to 'bytesconv_test.go')
-rw-r--r--bytesconv_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/bytesconv_test.go b/bytesconv_test.go
index 15ce641..c7a96e5 100644
--- a/bytesconv_test.go
+++ b/bytesconv_test.go
@@ -69,7 +69,7 @@ func TestParseUfloatError(t *testing.T) {
}
func testParseUfloatError(t *testing.T, s string) {
- n, err := parseUfloat([]byte(s))
+ n, err := ParseUfloat([]byte(s))
if err == nil {
t.Fatalf("Expecting error when parsing %q. obtained %f", s, n)
}
@@ -79,7 +79,7 @@ func testParseUfloatError(t *testing.T, s string) {
}
func testParseUfloatSuccess(t *testing.T, s string, expectedF float64) {
- f, err := parseUfloat([]byte(s))
+ f, err := ParseUfloat([]byte(s))
if err != nil {
t.Fatalf("Unexpected error when parsing %q: %s", s, err)
}
@@ -93,7 +93,7 @@ func testParseUfloatSuccess(t *testing.T, s string, expectedF float64) {
}
func testParseUintError(t *testing.T, s string) {
- n, err := parseUint([]byte(s))
+ n, err := ParseUint([]byte(s))
if err == nil {
t.Fatalf("Expecting error when parsing %q. obtained %d", s, n)
}
@@ -103,7 +103,7 @@ func testParseUintError(t *testing.T, s string) {
}
func testParseUintSuccess(t *testing.T, s string, expectedN int) {
- n, err := parseUint([]byte(s))
+ n, err := ParseUint([]byte(s))
if err != nil {
t.Fatalf("Unexpected error when parsing %q: %s", s, err)
}