Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cfg: added check for key prefixes; #1051

Merged
merged 1 commit into from
Sep 11, 2023
Merged

cfg: added check for key prefixes; #1051

merged 1 commit into from
Sep 11, 2023

Conversation

j4k4
Copy link
Member

@j4k4 j4k4 commented Sep 11, 2023

checks if there are config keys with a prefix

@j4k4 j4k4 force-pushed the conf_prefix_exists branch 2 times, most recently from fbccc34 to 1e9b8b9 Compare September 11, 2023 14:38
Comment on lines +18 to +23
func TestMemoryPrefixExists(t *testing.T) {
provider := cfg.NewMemoryEnvProvider(map[string]string{
"GOSOLINE_TEST": "foobar",
})
assert.True(t, provider.PrefixExists("GOSOLINE"))
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we test for something that can not have been set beforehand by a test in OS env to make sure this test is not erraneously passing?

@j4k4 j4k4 merged commit 3c9f7b6 into main Sep 11, 2023
13 checks passed
@j4k4 j4k4 deleted the conf_prefix_exists branch September 11, 2023 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants