(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestRenderCompactTabOmitsBranch(t *testing.T) { |
| 71 | tb := &TabBar{} |
| 72 | |
| 73 | entry := TabEntry{ |
| 74 | Name: "auth", |
| 75 | Branch: "chief/auth", |
| 76 | LoopState: loop.LoopStateRunning, |
| 77 | } |
| 78 | |
| 79 | result := tb.renderCompactTab(entry, 1) |
| 80 | if strings.Contains(result, "chief/auth") { |
| 81 | t.Errorf("expected compact tab to omit branch, got: %s", result) |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | func TestTabEntryBranchField(t *testing.T) { |
| 86 | entry := TabEntry{ |
nothing calls this directly
no test coverage detected