github.com/sap/cf-mta-plugin@v2.6.3+incompatible/clients/restclient/fakes/fake_rest_client_operations.go (about)

     1  // This file was generated by counterfeiter
     2  package fakes
     3  
     4  import (
     5  	"sync"
     6  
     7  	restclient "github.com/cloudfoundry-incubator/multiapps-cli-plugin/clients/restclient"
     8  )
     9  
    10  type FakeRestClientOperations struct {
    11  	PurgeConfigurationStub        func(org, space string) error
    12  	purgeConfigurationMutex       sync.RWMutex
    13  	purgeConfigurationArgsForCall []struct {
    14  		org   string
    15  		space string
    16  	}
    17  	purgeConfigurationReturns struct {
    18  		result1 error
    19  	}
    20  }
    21  
    22  func (fake *FakeRestClientOperations) PurgeConfiguration(org string, space string) error {
    23  	fake.purgeConfigurationMutex.Lock()
    24  	fake.purgeConfigurationArgsForCall = append(fake.purgeConfigurationArgsForCall, struct {
    25  		org   string
    26  		space string
    27  	}{org, space})
    28  	fake.purgeConfigurationMutex.Unlock()
    29  	if fake.PurgeConfigurationStub != nil {
    30  		return fake.PurgeConfigurationStub(org, space)
    31  	} else {
    32  		return fake.purgeConfigurationReturns.result1
    33  	}
    34  }
    35  func (fake *FakeRestClientOperations) PurgeConfigurationCallCount() int {
    36  	fake.purgeConfigurationMutex.RLock()
    37  	defer fake.purgeConfigurationMutex.RUnlock()
    38  	return len(fake.purgeConfigurationArgsForCall)
    39  }
    40  
    41  func (fake *FakeRestClientOperations) PurgeConfigurationArgsForCall(i int) (string, string) {
    42  	fake.purgeConfigurationMutex.RLock()
    43  	defer fake.purgeConfigurationMutex.RUnlock()
    44  	return fake.purgeConfigurationArgsForCall[i].org, fake.purgeConfigurationArgsForCall[i].space
    45  }
    46  
    47  func (fake *FakeRestClientOperations) PurgeConfigurationReturns(result1 error) {
    48  	fake.PurgeConfigurationStub = nil
    49  	fake.purgeConfigurationReturns = struct {
    50  		result1 error
    51  	}{result1}
    52  }
    53  
    54  var _ restclient.RestClientOperations = new(FakeRestClientOperations)