Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Unified Diff: common/iotools/countingreader_test.go

Issue 2435883002: LogDog: Fix archival Get/Tail implementations. (Closed)
Patch Set: LogDog: Fix archival Get/Tail implementations. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: common/iotools/countingreader_test.go
diff --git a/common/iotools/countingreader_test.go b/common/iotools/countingreader_test.go
index f9246728f87281f9429f69a4b5b40034fa1c74f9..af1f98a327449d399c0aa3a20841b17f89541fc7 100644
--- a/common/iotools/countingreader_test.go
+++ b/common/iotools/countingreader_test.go
@@ -45,7 +45,7 @@ func TestCountingReader(t *testing.T) {
amount, err := cr.Read(make([]byte, 10))
So(err, ShouldBeNil)
So(amount, ShouldEqual, 10)
- So(cr.Count(), ShouldEqual, 10)
+ So(cr.Count, ShouldEqual, 10)
})
Convey(`When using 32 sequential ReadByte, registers a count of 32.`, func() {
@@ -53,7 +53,7 @@ func TestCountingReader(t *testing.T) {
b, err := cr.ReadByte()
So(err, ShouldBeNil)
So(b, ShouldEqual, 0x55)
- So(cr.Count(), ShouldEqual, i+1)
+ So(cr.Count, ShouldEqual, i+1)
}
_, err := cr.ReadByte()
@@ -77,7 +77,7 @@ func TestCountingReader(t *testing.T) {
b, err := cr.ReadByte()
So(err, ShouldBeNil)
So(b, ShouldEqual, 0x55)
- So(cr.Count(), ShouldEqual, 1)
+ So(cr.Count, ShouldEqual, 1)
So(tr.called, ShouldBeTrue)
})
})

Powered by Google App Engine
This is Rietveld 408576698