@@ -109,10 +109,10 @@ func Test_TerraformRequiredVersionRuleMultipleFiles(t *testing.T) {
109
109
110
110
t .Run ("multiple files no terraform blocks" , func (t * testing.T ) {
111
111
files := map [string ]string {
112
- filepath .Join ("modules" , " foo" , " bar" , " other.tf" ): "" ,
113
- filepath .Join ("modules" , " foo" , " outputs.tf" ): "" ,
114
- filepath .Join ("modules" , " foo" , " main.tf" ): "" ,
115
- filepath .Join ("modules" , " foo" , " variables.tf" ): "" ,
112
+ filepath .FromSlash ("modules/ foo/ bar/ other.tf" ): "" ,
113
+ filepath .FromSlash ("modules/ foo/ outputs.tf" ): "" ,
114
+ filepath .FromSlash ("modules/ foo/ main.tf" ): "" ,
115
+ filepath .FromSlash ("modules/ foo/ variables.tf" ): "" ,
116
116
}
117
117
runner := helper .TestRunner (t , files )
118
118
if err := rule .Check (runner ); err != nil {
@@ -124,7 +124,7 @@ func Test_TerraformRequiredVersionRuleMultipleFiles(t *testing.T) {
124
124
Rule : NewTerraformRequiredVersionRule (),
125
125
Message : "terraform \" required_version\" attribute is required" ,
126
126
Range : hcl.Range {
127
- Filename : "modules/foo/" ,
127
+ Filename : filepath . FromSlash ( "modules/foo/" ) ,
128
128
},
129
129
},
130
130
}, runner .Issues )
0 commit comments