Commit c486a810
c486a810e655Merged
Svyatoslav Dumchenko <[email protected]> ยท 4 years ago ยท 2 files ยท ~2 modified
Description
Add a bit more tests
Details
- Commit
- c486a810e655
- Parent
- 47a54a97e279
pkg/template/extra_test.gomodifiedView file
@@ -14,12 +14,19 @@
1414
suite.Suite1515
}1616
17-
func (s *ExtraTestSuite) TestUnmarshal() {18-
s.T().Skip("not implemented")19-
}20-
2117
func (s *ExtraTestSuite) TestToYaml() {22-
s.T().Skip("not implemented")18+
data := struct {19+
Field interface{}20+
nonexported interface{}21+
}{22+
Field: "field",23+
nonexported: 123,24+
}25+
yamlData := "field: field"26+
27+
y, err := ToYaml(data)28+
s.Require().NoError(err)29+
s.Require().YAMLEq(yamlData, y)2330
}2431
2532
func (s *ExtraTestSuite) TestFromYaml() {pkg/template/tpl2yml_test.gomodifiedView file
Loading diffโฆ