(t *testing.T)
| 27 | ) |
| 28 | |
| 29 | func TestSummary(t *testing.T) { |
| 30 | brk1 := Entry{ |
| 31 | ChangeType: Breaking, |
| 32 | Component: "foo", |
| 33 | Note: "broke foo", |
| 34 | Issues: []int{123}, |
| 35 | } |
| 36 | brk2 := Entry{ |
| 37 | ChangeType: Breaking, |
| 38 | Component: "bar", |
| 39 | Note: "broke bar", |
| 40 | Issues: []int{345, 678}, |
| 41 | SubText: "more details", |
| 42 | } |
| 43 | dep1 := Entry{ |
| 44 | ChangeType: Deprecation, |
| 45 | Component: "foo", |
| 46 | Note: "deprecate foo", |
| 47 | Issues: []int{1234}, |
| 48 | } |
| 49 | dep2 := Entry{ |
| 50 | ChangeType: Deprecation, |
| 51 | Component: "bar", |
| 52 | Note: "deprecate bar", |
| 53 | Issues: []int{3456, 6789}, |
| 54 | SubText: "more details", |
| 55 | } |
| 56 | enh1 := Entry{ |
| 57 | ChangeType: Enhancement, |
| 58 | Component: "foo", |
| 59 | Note: "enhance foo", |
| 60 | Issues: []int{12}, |
| 61 | } |
| 62 | enh2 := Entry{ |
| 63 | ChangeType: Enhancement, |
| 64 | Component: "bar", |
| 65 | Note: "enhance bar", |
| 66 | Issues: []int{34, 67}, |
| 67 | SubText: "more details", |
| 68 | } |
| 69 | bug1 := Entry{ |
| 70 | ChangeType: BugFix, |
| 71 | Component: "foo", |
| 72 | Note: "bug foo", |
| 73 | Issues: []int{1}, |
| 74 | } |
| 75 | bug2 := Entry{ |
| 76 | ChangeType: BugFix, |
| 77 | Component: "bar", |
| 78 | Note: "bug bar", |
| 79 | Issues: []int{3, 6}, |
| 80 | SubText: "more details", |
| 81 | } |
| 82 | new1 := Entry{ |
| 83 | ChangeType: NewComponent, |
| 84 | Component: "foo", |
| 85 | Note: "new foo", |
| 86 | Issues: []int{2}, |
nothing calls this directly
no test coverage detected