github.com/abemedia/go-don@v0.2.2-0.20240329015135-be88e32bb73b/encoding/text/text_test.go (about) 1 package text_test 2 3 import ( 4 "testing" 5 6 "github.com/abemedia/go-don/internal/test" 7 ) 8 9 var opt = test.EncodingOptions[string]{ 10 Mime: "text/plain", 11 Raw: "foo", 12 Parsed: "foo", 13 } 14 15 func TestText(t *testing.T) { 16 test.Encoding(t, opt) 17 } 18 19 func BenchmarkText(b *testing.B) { 20 test.BenchmarkEncoding(b, opt) 21 }