diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2018-02-08 00:33:41 +0100 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2018-02-08 00:33:41 +0100 |
| commit | 49a15959b15dcaefaff48146a7afabf640934f06 (patch) | |
| tree | 079ab5deb0a7cbfef11661560a3a199e87b89652 /field_test.go | |
| parent | 0753d87f410da6432f9ab4ab1d35e9b923fb9766 (diff) | |
| download | go-schwift-49a15959b15dcaefaff48146a7afabf640934f06.tar.gz | |
add ObjectHeaders
Diffstat (limited to 'field_test.go')
| -rw-r--r-- | field_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/field_test.go b/field_test.go index bea85ca..c931108 100644 --- a/field_test.go +++ b/field_test.go @@ -64,21 +64,21 @@ func TestFieldTimestamp(t *testing.T) { return } - expectBool(t, hdr.Timestamp().Exists(), true) + expectBool(t, hdr.CreatedAt().Exists(), true) - actual := float64(hdr.Timestamp().Get().UnixNano()) / 1e9 + actual := float64(hdr.CreatedAt().Get().UnixNano()) / 1e9 expected, _ := strconv.ParseFloat(hdr["X-Timestamp"], 64) expectFloat64(t, actual, expected) }) hdr := make(AccountHeaders) - expectBool(t, hdr.Timestamp().Exists(), false) - expectBool(t, hdr.Timestamp().Get().IsZero(), true) + expectBool(t, hdr.CreatedAt().Exists(), false) + expectBool(t, hdr.CreatedAt().Get().IsZero(), true) expectError(t, hdr.Validate(), "") hdr["X-Timestamp"] = "wtf" - expectBool(t, hdr.Timestamp().Exists(), true) - expectBool(t, hdr.Timestamp().Get().IsZero(), true) + expectBool(t, hdr.CreatedAt().Exists(), true) + expectBool(t, hdr.CreatedAt().Get().IsZero(), true) expectError(t, hdr.Validate(), `Bad header X-Timestamp: strconv.ParseFloat: parsing "wtf": invalid syntax`) } |
