MCPcopy Create free account
hub / github.com/gavv/httpexpect / NewEnvironmentC

Function NewEnvironmentC

environment.go:43–45  ·  view source on GitHub ↗

NewEnvironmentC returns a new Environment with config. Requirements for config are same as for WithConfig function. Example: env := NewEnvironmentC(config)

(config Config)

Source from the content-addressed store, hash-verified

41//
42// env := NewEnvironmentC(config)
43func NewEnvironmentC(config Config) *Environment {
44 return newEnvironment(newChainWithConfig("Environment()", config.withDefaults()))
45}
46
47func newEnvironment(parent *chain) *Environment {
48 return &Environment{

Callers 1

Calls 3

newEnvironmentFunction · 0.85
newChainWithConfigFunction · 0.85
withDefaultsMethod · 0.80

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…