github.com/asifdxtreme/cli@v6.1.3-0.20150123051144-9ead8700b4ae+incompatible/cf/terminal/fakes/fake_output_capture.go (about)

     1  // This file was generated by counterfeiter
     2  package fakes
     3  
     4  import (
     5  	. "github.com/cloudfoundry/cli/cf/terminal"
     6  	"sync"
     7  )
     8  
     9  type FakeOutputCapture struct {
    10  	GetOutputAndResetStub        func() []string
    11  	getOutputAndResetMutex       sync.RWMutex
    12  	getOutputAndResetArgsForCall []struct{}
    13  	getOutputAndResetReturns     struct {
    14  		result1 []string
    15  	}
    16  }
    17  
    18  func (fake *FakeOutputCapture) GetOutputAndReset() []string {
    19  	fake.getOutputAndResetMutex.Lock()
    20  	defer fake.getOutputAndResetMutex.Unlock()
    21  	fake.getOutputAndResetArgsForCall = append(fake.getOutputAndResetArgsForCall, struct{}{})
    22  	if fake.GetOutputAndResetStub != nil {
    23  		return fake.GetOutputAndResetStub()
    24  	} else {
    25  		return fake.getOutputAndResetReturns.result1
    26  	}
    27  }
    28  
    29  func (fake *FakeOutputCapture) GetOutputAndResetCallCount() int {
    30  	fake.getOutputAndResetMutex.RLock()
    31  	defer fake.getOutputAndResetMutex.RUnlock()
    32  	return len(fake.getOutputAndResetArgsForCall)
    33  }
    34  
    35  func (fake *FakeOutputCapture) GetOutputAndResetReturns(result1 []string) {
    36  	fake.getOutputAndResetReturns = struct {
    37  		result1 []string
    38  	}{result1}
    39  }
    40  
    41  var _ OutputCapture = new(FakeOutputCapture)