Skip to content

Commit 162f7fb

Browse files
committed
Fixed typo IsProertyMissingInExpandPropsInString -> IsPropertyMissingInExpandPropsInString
1 parent 108bd3e commit 162f7fb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

properties.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -405,12 +405,12 @@ func (m *Map) ExpandPropsInString(str string) string {
405405
return m.expandProps(str, false)
406406
}
407407

408-
// IsProertyMissingInExpandPropsInString checks if a property 'prop' is missing
408+
// IsPropertyMissingInExpandPropsInString checks if a property 'prop' is missing
409409
// when the ExpandPropsInString method is applied to the input string 'str'.
410410
// This method returns false if the 'prop' is defined in the map
411411
// or if 'prop' is not used in the string expansion of 'str', otherwise
412412
// the method returns true.
413-
func (m *Map) IsProertyMissingInExpandPropsInString(prop, str string) bool {
413+
func (m *Map) IsPropertyMissingInExpandPropsInString(prop, str string) bool {
414414
if m.ContainsKey(prop) {
415415
return false
416416
}

properties_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ func TestExpandPropsInStringAndMissingCheck(t *testing.T) {
8282

8383
require.Equal(t, "42 == 42 == true", aMap.ExpandPropsInString("{key1} == {key2} == true"))
8484

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}"))
8989
}
9090

9191
func TestExpandPropsInString2(t *testing.T) {

0 commit comments

Comments
 (0)