From daa401817d53bd3686bca19cbba880449fa23fd9 Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Sat, 31 Aug 2019 07:57:24 -0600 Subject: [PATCH] Removed unused testing code --- hatmill_test.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/hatmill_test.go b/hatmill_test.go index 88a02b1..cd80fd9 100644 --- a/hatmill_test.go +++ b/hatmill_test.go @@ -19,12 +19,6 @@ import ( he "gitlab.codemonkeysoftware.net/b/hatmill/element" ) -type NopWriter struct{} - -func (NopWriter) Write(p []byte) (n int, err error) { - return len(p), nil -} - func writeToString(wt io.WriterTo) string { var buf bytes.Buffer _, err := wt.WriteTo(&buf) @@ -58,16 +52,6 @@ var dangerousASCII = gen.UnicodeString(ASCII).SuchThat(func(v interface{}) bool return false }) -func printableASCII() string { - const minPrintable rune = 32 - const maxPrintable rune = 126 - var buf bytes.Buffer - for r := minPrintable; r <= maxPrintable; r++ { - buf.WriteRune(r) - } - return buf.String() -} - func TestText(t *testing.T) { properties := gopter.NewProperties(nil) properties.Property("WriteTo escapes special chars and outputs all others unchanged", prop.ForAll(