Skip to content

Commit

Permalink
stop exposing reset on builder
Browse files Browse the repository at this point in the history
  • Loading branch information
wazazaby committed Oct 10, 2023
1 parent 29f5936 commit 7bac44b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions vimebu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
6 changes: 0 additions & 6 deletions vimebu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7bac44b

Please sign in to comment.