Change annotation name, error if conflicting options

This commit is contained in:
Phani Teja Marupaka
2021-07-09 01:32:48 -07:00
parent c07ffa5c1e
commit 89b12cfc62
5 changed files with 75 additions and 36 deletions

View File

@@ -337,7 +337,7 @@ g:
}
}
func TestLocalPackageReader_Read_addSeqIndentAnnotation(t *testing.T) {
func TestLocalPackageReader_Read_PreserveSeqIndent(t *testing.T) {
s := SetupDirectories(t, filepath.Join("a", "b"), filepath.Join("a", "c"))
defer s.Clean()
s.WriteFile(t, filepath.Join("a_test.yaml"), readFileA)
@@ -351,7 +351,7 @@ func TestLocalPackageReader_Read_addSeqIndentAnnotation(t *testing.T) {
}
for _, p := range paths {
// empty path
rfr := LocalPackageReader{PackagePath: p.path, AddSeqIndentAnnotation: true}
rfr := LocalPackageReader{PackagePath: p.path, PreserveSeqIndent: true}
nodes, err := rfr.Read()
if !assert.NoError(t, err) {
return