@@ -14,12 +14,13 @@ func TestClu2AdvParams(t *testing.T) {
1414 cwd , err := os .Getwd ()
1515 require .NoError (t , err )
1616 var (
17- prefix = cwd + "/testdata/"
18- fileIn = prefix + "clu2adv.in.tf"
19- fileOut = prefix + "clu2adv.out.tf"
20- fileExpected = prefix + "clu2adv.expected.tf"
21- fileUnexisting = prefix + "clu2adv.unexisting.tf"
22- fs = afero .NewOsFs ()
17+ prefix = cwd + "/testdata/"
18+ fileIn = prefix + "clu2adv.in.tf"
19+ fileOut = prefix + "clu2adv.out.tf"
20+ fileExpected = prefix + "clu2adv.expected.tf"
21+ fileExpectedMoved = prefix + "clu2adv.expected_moved.tf"
22+ fileUnexisting = prefix + "clu2adv.unexisting.tf"
23+ fs = afero .NewOsFs ()
2324 )
2425 tests := map [string ]struct {
2526 expectedErrContains string
@@ -49,6 +50,10 @@ func TestClu2AdvParams(t *testing.T) {
4950 args : []string {"--file" , fileIn , "--output" , fileOut },
5051 assertFunc : func (t * testing.T ) { t .Helper (); e2e .CompareFiles (t , fs , fileOut , fileExpected ) },
5152 },
53+ "include moved" : {
54+ args : []string {"--file" , fileIn , "--output" , fileOut , "--includeMoved" },
55+ assertFunc : func (t * testing.T ) { t .Helper (); e2e .CompareFiles (t , fs , fileOut , fileExpectedMoved ) },
56+ },
5257 }
5358 for name , tc := range tests {
5459 t .Run (name , func (t * testing.T ) {
0 commit comments