(t *testing.T)
| 148 | } |
| 149 | |
| 150 | func TestNewTextSourceWithLimit_MultibyteWithinLimit(t *testing.T) { |
| 151 | data := "🙂🙂" |
| 152 | src, err := NewTextSourceWithLimit(data, 2) |
| 153 | if err != nil { |
| 154 | t.Fatalf("unexpected error: %v", err) |
| 155 | } |
| 156 | if got, want := src.Content(), data; got != want { |
| 157 | t.Fatalf("got %q, want %q", got, want) |
| 158 | } |
| 159 | } |
nothing calls this directly
no test coverage detected