(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func TestViewModel(t *testing.T) { |
| 62 | tests := []struct { |
| 63 | name string |
| 64 | opts []testViewOpts |
| 65 | }{ |
| 66 | { |
| 67 | name: "altscreen", |
| 68 | opts: []testViewOpts{ |
| 69 | {altScreen: true}, |
| 70 | {altScreen: false}, |
| 71 | }, |
| 72 | }, |
| 73 | { |
| 74 | name: "altscreen_autoexit", |
| 75 | opts: []testViewOpts{ |
| 76 | {altScreen: true}, |
| 77 | }, |
| 78 | }, |
| 79 | { |
| 80 | name: "mouse_cellmotion", |
| 81 | opts: []testViewOpts{ |
| 82 | {mouseMode: MouseModeCellMotion}, |
| 83 | }, |
| 84 | }, |
| 85 | { |
| 86 | name: "mouse_allmotion", |
| 87 | opts: []testViewOpts{ |
| 88 | {mouseMode: MouseModeAllMotion}, |
| 89 | }, |
| 90 | }, |
| 91 | { |
| 92 | name: "mouse_disable", |
| 93 | opts: []testViewOpts{ |
| 94 | {mouseMode: MouseModeAllMotion}, |
| 95 | {mouseMode: MouseModeNone}, |
| 96 | }, |
| 97 | }, |
| 98 | { |
| 99 | name: "cursor_hide", |
| 100 | opts: []testViewOpts{ |
| 101 | {}, |
| 102 | }, |
| 103 | }, |
| 104 | { |
| 105 | name: "cursor_hideshow", |
| 106 | opts: []testViewOpts{ |
| 107 | {showCursor: false}, |
| 108 | {showCursor: true}, |
| 109 | }, |
| 110 | }, |
| 111 | { |
| 112 | name: "bp_stop_start", |
| 113 | opts: []testViewOpts{ |
| 114 | {disableBp: true}, |
| 115 | {disableBp: false}, |
| 116 | }, |
| 117 | }, |
| 118 | { |
nothing calls this directly
no test coverage detected