@@ -33,11 +33,11 @@ func testBoolValueFromTerraform(t *testing.T, direct bool) {
33
33
},
34
34
"unknown" : {
35
35
input : tftypes .NewValue (tftypes .Bool , tftypes .UnknownValue ),
36
- expectation : Bool {Unknown : true },
36
+ expectation : Bool {unknown : true },
37
37
},
38
38
"null" : {
39
39
input : tftypes .NewValue (tftypes .Bool , nil ),
40
- expectation : Bool {Null : true },
40
+ expectation : Bool {null : true },
41
41
},
42
42
"wrongType" : {
43
43
input : tftypes .NewValue (tftypes .String , "oops" ),
@@ -96,11 +96,11 @@ func TestBoolToTerraformValue(t *testing.T) {
96
96
expectation : tftypes .NewValue (tftypes .Bool , false ),
97
97
},
98
98
"unknown" : {
99
- input : Bool {Unknown : true },
99
+ input : Bool {unknown : true },
100
100
expectation : tftypes .NewValue (tftypes .Bool , tftypes .UnknownValue ),
101
101
},
102
102
"null" : {
103
- input : Bool {Null : true },
103
+ input : Bool {null : true },
104
104
expectation : tftypes .NewValue (tftypes .Bool , nil ),
105
105
},
106
106
}
@@ -143,12 +143,12 @@ func TestBoolEqual(t *testing.T) {
143
143
},
144
144
"true-unknown" : {
145
145
input : Bool {Value : true },
146
- candidate : Bool {Unknown : true },
146
+ candidate : Bool {unknown : true },
147
147
expectation : false ,
148
148
},
149
149
"true-null" : {
150
150
input : Bool {Value : true },
151
- candidate : Bool {Null : true },
151
+ candidate : Bool {null : true },
152
152
expectation : false ,
153
153
},
154
154
"true-wrongType" : {
@@ -173,12 +173,12 @@ func TestBoolEqual(t *testing.T) {
173
173
},
174
174
"false-unknown" : {
175
175
input : Bool {Value : false },
176
- candidate : Bool {Unknown : true },
176
+ candidate : Bool {unknown : true },
177
177
expectation : false ,
178
178
},
179
179
"false-null" : {
180
180
input : Bool {Value : false },
181
- candidate : Bool {Null : true },
181
+ candidate : Bool {null : true },
182
182
expectation : false ,
183
183
},
184
184
"false-wrongType" : {
@@ -192,62 +192,62 @@ func TestBoolEqual(t *testing.T) {
192
192
expectation : false ,
193
193
},
194
194
"unknown-true" : {
195
- input : Bool {Unknown : true },
195
+ input : Bool {unknown : true },
196
196
candidate : Bool {Value : true },
197
197
expectation : false ,
198
198
},
199
199
"unknown-false" : {
200
- input : Bool {Unknown : true },
200
+ input : Bool {unknown : true },
201
201
candidate : Bool {Value : false },
202
202
expectation : false ,
203
203
},
204
204
"unknown-unknown" : {
205
- input : Bool {Unknown : true },
206
- candidate : Bool {Unknown : true },
205
+ input : Bool {unknown : true },
206
+ candidate : Bool {unknown : true },
207
207
expectation : true ,
208
208
},
209
209
"unknown-null" : {
210
- input : Bool {Unknown : true },
211
- candidate : Bool {Null : true },
210
+ input : Bool {unknown : true },
211
+ candidate : Bool {null : true },
212
212
expectation : false ,
213
213
},
214
214
"unknown-wrongType" : {
215
- input : Bool {Unknown : true },
215
+ input : Bool {unknown : true },
216
216
candidate : & String {Value : "oops" },
217
217
expectation : false ,
218
218
},
219
219
"unknown-nil" : {
220
- input : Bool {Unknown : true },
220
+ input : Bool {unknown : true },
221
221
candidate : nil ,
222
222
expectation : false ,
223
223
},
224
224
"null-true" : {
225
- input : Bool {Null : true },
225
+ input : Bool {null : true },
226
226
candidate : Bool {Value : true },
227
227
expectation : false ,
228
228
},
229
229
"null-false" : {
230
- input : Bool {Null : true },
230
+ input : Bool {null : true },
231
231
candidate : Bool {Value : false },
232
232
expectation : false ,
233
233
},
234
234
"null-unknown" : {
235
- input : Bool {Null : true },
236
- candidate : Bool {Unknown : true },
235
+ input : Bool {null : true },
236
+ candidate : Bool {unknown : true },
237
237
expectation : false ,
238
238
},
239
239
"null-null" : {
240
- input : Bool {Null : true },
241
- candidate : Bool {Null : true },
240
+ input : Bool {null : true },
241
+ candidate : Bool {null : true },
242
242
expectation : true ,
243
243
},
244
244
"null-wrongType" : {
245
- input : Bool {Null : true },
245
+ input : Bool {null : true },
246
246
candidate : & String {Value : "oops" },
247
247
expectation : false ,
248
248
},
249
249
"null-nil" : {
250
- input : Bool {Null : true },
250
+ input : Bool {null : true },
251
251
candidate : nil ,
252
252
expectation : false ,
253
253
},
0 commit comments