(t *testing.T)
| 192 | } |
| 193 | |
| 194 | func TestSeparator(t *testing.T) { |
| 195 | is := is.New(t) |
| 196 | |
| 197 | ctx := context.Background() |
| 198 | p := &Plugin{} |
| 199 | items, err := p.parseOutput(ctx, "test.txt", strings.NewReader(strings.TrimSpace(` |
| 200 | cycle1 | trim=true |
| 201 | cycle2 | trim=false |
| 202 | cycle |
| 203 | --- |
| 204 | one |
| 205 | --- |
| 206 | two |
| 207 | --- |
| 208 | three`))) |
| 209 | is.NoErr(err) |
| 210 | is.Equal(len(items.CycleItems), 3) // CycleItems |
| 211 | is.Equal(len(items.ExpandedItems), 5) // ExtendedItems |
| 212 | is.Equal(items.ExpandedItems[1].Params.Separator, true) |
| 213 | is.Equal(items.ExpandedItems[3].Params.Separator, true) |
| 214 | |
| 215 | } |
| 216 | |
| 217 | func TestBlankLines(t *testing.T) { |
| 218 | is := is.New(t) |
nothing calls this directly
no test coverage detected