func NewTestInterfaceWithCircuitBreaker(base TestInterface, consecutiveErrors int, openInterval time.Duration) *TestInterfaceWithCircuitBreaker {
	return &TestInterfaceWithCircuitBreaker{
		TestInterface:         base,
		_maxConsecutiveErrors: consecutiveErrors,
		_openInterval:         openInterval,
	}
}
// NewTestInterfaceWithCircuitBreaker breakes a circuit after consecutiveErrors of errors and opens the circuit again after openInterval of time.
// If after openInterval first method call results in error we close open again.
NewTestInterfaceWithCircuitBreaker breakes a circuit after consecutiveErrors of errors and opens the circuit again after openInterval of time.
If after openInterval first method call results in error we close open again.
// NewTestInterfaceWithCircuitBreaker breakes a circuit after consecutiveErrors of errors and opens the circuit again after openInterval of time . // If after openInterval first method call results in error we close open again .
func NewTestInterfaceWithCircuitBreaker(base TestInterface, consecutiveErrors int, openInterval time.Duration) *TestInterfaceWithCircuitBreaker {
	return &TestInterfaceWithCircuitBreaker{
		TestInterface:         base,
		_maxConsecutiveErrors: consecutiveErrors,
		_openInterval:         openInterval,
	}
}
func NewTestInterfaceWithCircuitBreaker ( base TestInterface , consecutiveErrors int , openInterval time . Duration ) * TestInterfaceWithCircuitBreaker { return & TestInterfaceWithCircuitBreaker { TestInterface : base , _maxConsecutiveErrors : consecutiveErrors , _openInterval : openInterval , } }
NewTestInterfaceWithCircuitBreaker breakes a circuit after consecutiveErrors of errors and opens the circuit again after openInterval of time.
NewTestInterfaceWithCircuitBreaker breakes a circuit after consecutiveErrors of errors and opens the circuit again after openInterval of time .