}
-func TestDataDirUnknownFormat(t *testing.T) {
- t.Parallel()
-
- sources := []source.ByteSource{
- {Name: filepath.FromSlash("data/test.roml"), Content: []byte("boo")},
- }
- doTestDataDir(t, true, sources)
-}
-
func doTestDataDir(t *testing.T, expected interface{}, sources []source.ByteSource, configKeyValues ...interface{}) {
var (
cfg, fs = newTestCfg()
data, err := s.readData(r)
if err != nil {
- return fmt.Errorf("Failed to read data from %s: %s", filepath.Join(r.Path(), r.LogicalName()), err)
+ s.Log.WARN.Printf("Failed to read data from %s: %s", filepath.Join(r.Path(), r.LogicalName()), err)
+ continue
}
if data == nil {