Test_EnvVarStructWithExportVars() — fiber Function Reference
Architecture documentation for the Test_EnvVarStructWithExportVars() function in envvar_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 42988607_b01e_752e_8abe_2db8a62de2ae["Test_EnvVarStructWithExportVars()"] c03ebe64_8030_fb61_5944_e77fa44dc542["envvar_test.go"] 42988607_b01e_752e_8abe_2db8a62de2ae -->|defined in| c03ebe64_8030_fb61_5944_e77fa44dc542 style 42988607_b01e_752e_8abe_2db8a62de2ae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/envvar/envvar_test.go lines 15–25
func Test_EnvVarStructWithExportVars(t *testing.T) {
t.Setenv("testKey", "testEnvValue")
t.Setenv("anotherEnvKey", "anotherEnvVal")
vars := newEnvVar(Config{
ExportVars: map[string]string{"testKey": "", "testDefaultKey": "testDefaultVal"},
})
require.Equal(t, "testEnvValue", vars.Vars["testKey"])
require.Equal(t, "testDefaultVal", vars.Vars["testDefaultKey"])
require.Empty(t, vars.Vars["anotherEnvKey"])
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_EnvVarStructWithExportVars() do?
Test_EnvVarStructWithExportVars() is a function in the fiber codebase, defined in middleware/envvar/envvar_test.go.
Where is Test_EnvVarStructWithExportVars() defined?
Test_EnvVarStructWithExportVars() is defined in middleware/envvar/envvar_test.go at line 15.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free