File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -405,12 +405,12 @@ func (m *Map) ExpandPropsInString(str string) string {
405
405
return m .expandProps (str , false )
406
406
}
407
407
408
- // IsProertyMissingInExpandPropsInString checks if a property 'prop' is missing
408
+ // IsPropertyMissingInExpandPropsInString checks if a property 'prop' is missing
409
409
// when the ExpandPropsInString method is applied to the input string 'str'.
410
410
// This method returns false if the 'prop' is defined in the map
411
411
// or if 'prop' is not used in the string expansion of 'str', otherwise
412
412
// the method returns true.
413
- func (m * Map ) IsProertyMissingInExpandPropsInString (prop , str string ) bool {
413
+ func (m * Map ) IsPropertyMissingInExpandPropsInString (prop , str string ) bool {
414
414
if m .ContainsKey (prop ) {
415
415
return false
416
416
}
Original file line number Diff line number Diff line change @@ -82,10 +82,10 @@ func TestExpandPropsInStringAndMissingCheck(t *testing.T) {
82
82
83
83
require .Equal (t , "42 == 42 == true" , aMap .ExpandPropsInString ("{key1} == {key2} == true" ))
84
84
85
- require .False (t , aMap .IsProertyMissingInExpandPropsInString ("key3" , "{key1} == {key2} == true" ))
86
- require .False (t , aMap .IsProertyMissingInExpandPropsInString ("key1" , "{key1} == {key2} == true" ))
87
- require .True (t , aMap .IsProertyMissingInExpandPropsInString ("key4" , "{key4} == {key2}" ))
88
- require .True (t , aMap .IsProertyMissingInExpandPropsInString ("key4" , "{key3} == {key2}" ))
85
+ require .False (t , aMap .IsPropertyMissingInExpandPropsInString ("key3" , "{key1} == {key2} == true" ))
86
+ require .False (t , aMap .IsPropertyMissingInExpandPropsInString ("key1" , "{key1} == {key2} == true" ))
87
+ require .True (t , aMap .IsPropertyMissingInExpandPropsInString ("key4" , "{key4} == {key2}" ))
88
+ require .True (t , aMap .IsPropertyMissingInExpandPropsInString ("key4" , "{key3} == {key2}" ))
89
89
}
90
90
91
91
func TestExpandPropsInString2 (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments