(opt Options)
| 68 | } |
| 69 | |
| 70 | func 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. |
| 82 | func (f *Framework) BeforeEach() { |
no test coverage detected
searching dependent graphs…