aboutsummaryrefslogtreecommitdiff
path: root/lib/test/writer.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-09-10 20:00:39 +0700
committerShulhan <ms@kilabit.info>2023-09-11 02:16:52 +0700
commitf80218a8023ad2c171901bd422d2a8f6bd155a48 (patch)
tree4e8e283664f08f1aa2f35a66732996d5c45fe045 /lib/test/writer.go
parent9801a607c1685f220350723848bcc4392d893850 (diff)
downloadpakakeh.go-f80218a8023ad2c171901bd422d2a8f6bd155a48.tar.xz
lib/test: refactoring, rename TestWriter to BufferWriter
The name TestWriter is considered stutter if its called from external package, test.TestWriter. While at it, implement the Error and Errorf in BufferWriter and add comment to each exported methods.
Diffstat (limited to 'lib/test/writer.go')
-rw-r--r--lib/test/writer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/test/writer.go b/lib/test/writer.go
index 4ab2a4e2..19dddb97 100644
--- a/lib/test/writer.go
+++ b/lib/test/writer.go
@@ -4,8 +4,8 @@
package test
-// Writer contains common methods between testing.T and testing.B, a subset of
-// testing.TB that cannot be used do private method.
+// Writer contains common methods between testing.T and testing.B, a subset
+// of testing.TB that cannot be used due to private methods.
type Writer interface {
Error(args ...any)
Errorf(format string, args ...any)