test(web/file/fs): check Size on fileinfo
continuous-integration/drone the build was successful
Details
continuous-integration/drone the build was successful
Details
This commit is contained in:
parent
81bfb1154d
commit
3e90199d98
|
@ -29,6 +29,7 @@ func TestOpenStat(t *testing.T) {
|
||||||
assert.Equal(uuid.MustParse("d2750ced-4bdc-41d0-8c2f-5b9de44b84ef"), fi.(file.FileInfo).ID())
|
assert.Equal(uuid.MustParse("d2750ced-4bdc-41d0-8c2f-5b9de44b84ef"), fi.(file.FileInfo).ID())
|
||||||
assert.Equal("text/plain", fi.(file.FileInfo).ContentType())
|
assert.Equal("text/plain", fi.(file.FileInfo).ContentType())
|
||||||
assert.Equal("glenda", fi.Name())
|
assert.Equal("glenda", fi.Name())
|
||||||
|
assert.Equal(int64(99), fi.Size())
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCreateOpenUUIDRead(t *testing.T) {
|
func TestCreateOpenUUIDRead(t *testing.T) {
|
||||||
|
|
Loading…
Reference in New Issue