MCPcopy
hub / github.com/fatedier/frp / NewFramework

Function NewFramework

test/e2e/framework/framework.go:70–79  ·  view source on GitHub ↗
(opt Options)

Source from the content-addressed store, hash-verified

68}
69
70func NewFramework(opt Options) *Framework {
71 f := &Framework{
72 portAllocator: port.NewAllocator(opt.FromPortIndex, opt.ToPortIndex, opt.TotalParallelNode, opt.CurrentNodeIndex-1),
73 usedPorts: make(map[string]int),
74 }
75
76 ginkgo.BeforeEach(f.BeforeEach)
77 ginkgo.AfterEach(f.AfterEach)
78 return f
79}
80
81// BeforeEach create a temp directory.
82func (f *Framework) BeforeEach() {

Callers 1

NewDefaultFrameworkFunction · 0.85

Calls 3

NewAllocatorFunction · 0.92
BeforeEachMethod · 0.80
AfterEachMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…