From 7bac44b43519e917a99befc62fbdc37d0c163a36 Mon Sep 17 00:00:00 2001 From: Teddy Sommavilla Date: Tue, 10 Oct 2023 15:12:35 +0200 Subject: [PATCH] stop exposing reset on builder --- vimebu.go | 6 ------ vimebu_test.go | 6 ------ 2 files changed, 12 deletions(-) diff --git a/vimebu.go b/vimebu.go index 39a906f..60e0311 100644 --- a/vimebu.go +++ b/vimebu.go @@ -216,9 +216,3 @@ func (b *Builder) String() string { b.underlying.WriteByte(rightBracketByte) return b.underlying.String() } - -// Reset resets the Builder to be empty. -func (b *Builder) Reset() { - b.flName, b.flLabel = false, false - putBuffer(b.underlying) -} diff --git a/vimebu_test.go b/vimebu_test.go index bece070..4563552 100644 --- a/vimebu_test.go +++ b/vimebu_test.go @@ -207,12 +207,6 @@ func handleTestCase(t *testing.T, tc testCase) { result := b.String() require.Equal(t, tc.expected, result) - - t.Run("reset", func(t *testing.T) { - b.Reset() - require.False(t, b.flName) - require.False(t, b.flLabel) - }) } func TestBuilder(t *testing.T) {