Removed unused testing code
This commit is contained in:
parent
88e811eefb
commit
daa401817d
@ -19,12 +19,6 @@ import (
|
|||||||
he "gitlab.codemonkeysoftware.net/b/hatmill/element"
|
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 {
|
func writeToString(wt io.WriterTo) string {
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
_, err := wt.WriteTo(&buf)
|
_, err := wt.WriteTo(&buf)
|
||||||
@ -58,16 +52,6 @@ var dangerousASCII = gen.UnicodeString(ASCII).SuchThat(func(v interface{}) bool
|
|||||||
return false
|
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) {
|
func TestText(t *testing.T) {
|
||||||
properties := gopter.NewProperties(nil)
|
properties := gopter.NewProperties(nil)
|
||||||
properties.Property("WriteTo escapes special chars and outputs all others unchanged", prop.ForAll(
|
properties.Property("WriteTo escapes special chars and outputs all others unchanged", prop.ForAll(
|
||||||
|
Loading…
Reference in New Issue
Block a user