MCPcopy Create free account
hub / github.com/efficientgo/e2e / WithName

Function WithName

env.go:55–59  ·  view source on GitHub ↗

WithName injects custom name of environment which will be used as a network name. If the name is not unique across different e2e environments ran at the same moment this will race them. In the same time if name is unique across every environment run for the same test it won't be able to easily clean

(name string)

Source from the content-addressed store, hash-verified

53//
54// NOTE: Some restrictions apply. See https://stackoverflow.com/a/53478768.
55func WithName(name string) EnvironmentOption {
56 return func(o *environmentOptions) {
57 o.name = name
58 }
59}
60
61func WithVolumes(volumes ...string) EnvironmentOption {
62 return func(o *environmentOptions) {

Callers 1

NewDockerEnvironmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…