(t *testing.T)
| 23 | ) |
| 24 | |
| 25 | func TestOSC8Link(t *testing.T) { |
| 26 | disableAnsi = false |
| 27 | t.Cleanup(func() { disableAnsi = false }) |
| 28 | |
| 29 | got := OSC8Link("http://example.com", "click here") |
| 30 | want := "\x1b]8;;http://example.com\x1b\\\x1b[4mclick here\x1b[24m\x1b]8;;\x1b\\" |
| 31 | assert.Equal(t, got, want) |
| 32 | } |
| 33 | |
| 34 | func TestOSC8Link_AnsiDisabled(t *testing.T) { |
| 35 | disableAnsi = true |
nothing calls this directly
no test coverage detected