(t *testing.T)
| 619 | } |
| 620 | |
| 621 | func TestKeyGroupsForFile(t *testing.T) { |
| 622 | conf, err := parseCreationRuleForFile(parseConfigFile(sampleConfig, t), "/conf/path", "foobar2000", nil) |
| 623 | assert.Nil(t, err) |
| 624 | assert.Equal(t, "2", conf.KeyGroups[0][0].ToString()) |
| 625 | assert.Equal(t, "1", conf.KeyGroups[0][1].ToString()) |
| 626 | conf, err = parseCreationRuleForFile(parseConfigFile(sampleConfig, t), "/conf/path", "whatever", nil) |
| 627 | assert.Nil(t, err) |
| 628 | assert.Equal(t, "bar", conf.KeyGroups[0][0].ToString()) |
| 629 | assert.Equal(t, "foo", conf.KeyGroups[0][1].ToString()) |
| 630 | } |
| 631 | |
| 632 | func TestKeyGroupsForFileWithPath(t *testing.T) { |
| 633 | conf, err := parseCreationRuleForFile(parseConfigFile(sampleConfigWithPath, t), "/conf/path", "foo/bar2000", nil) |
nothing calls this directly
no test coverage detected