Removed unused testing code

This commit is contained in:
Brandon Dyck 2019-08-31 07:57:24 -06:00
parent 88e811eefb
commit daa401817d

View File

@ -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(