github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/command/v6/v6fakes/fake_disable_org_isolation_actor.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package v6fakes
     3  
     4  import (
     5  	"sync"
     6  
     7  	"code.cloudfoundry.org/cli/actor/v3action"
     8  	v6 "code.cloudfoundry.org/cli/command/v6"
     9  )
    10  
    11  type FakeDisableOrgIsolationActor struct {
    12  	DeleteIsolationSegmentOrganizationByNameStub        func(string, string) (v3action.Warnings, error)
    13  	deleteIsolationSegmentOrganizationByNameMutex       sync.RWMutex
    14  	deleteIsolationSegmentOrganizationByNameArgsForCall []struct {
    15  		arg1 string
    16  		arg2 string
    17  	}
    18  	deleteIsolationSegmentOrganizationByNameReturns struct {
    19  		result1 v3action.Warnings
    20  		result2 error
    21  	}
    22  	deleteIsolationSegmentOrganizationByNameReturnsOnCall map[int]struct {
    23  		result1 v3action.Warnings
    24  		result2 error
    25  	}
    26  	invocations      map[string][][]interface{}
    27  	invocationsMutex sync.RWMutex
    28  }
    29  
    30  func (fake *FakeDisableOrgIsolationActor) DeleteIsolationSegmentOrganizationByName(arg1 string, arg2 string) (v3action.Warnings, error) {
    31  	fake.deleteIsolationSegmentOrganizationByNameMutex.Lock()
    32  	ret, specificReturn := fake.deleteIsolationSegmentOrganizationByNameReturnsOnCall[len(fake.deleteIsolationSegmentOrganizationByNameArgsForCall)]
    33  	fake.deleteIsolationSegmentOrganizationByNameArgsForCall = append(fake.deleteIsolationSegmentOrganizationByNameArgsForCall, struct {
    34  		arg1 string
    35  		arg2 string
    36  	}{arg1, arg2})
    37  	fake.recordInvocation("DeleteIsolationSegmentOrganizationByName", []interface{}{arg1, arg2})
    38  	fake.deleteIsolationSegmentOrganizationByNameMutex.Unlock()
    39  	if fake.DeleteIsolationSegmentOrganizationByNameStub != nil {
    40  		return fake.DeleteIsolationSegmentOrganizationByNameStub(arg1, arg2)
    41  	}
    42  	if specificReturn {
    43  		return ret.result1, ret.result2
    44  	}
    45  	fakeReturns := fake.deleteIsolationSegmentOrganizationByNameReturns
    46  	return fakeReturns.result1, fakeReturns.result2
    47  }
    48  
    49  func (fake *FakeDisableOrgIsolationActor) DeleteIsolationSegmentOrganizationByNameCallCount() int {
    50  	fake.deleteIsolationSegmentOrganizationByNameMutex.RLock()
    51  	defer fake.deleteIsolationSegmentOrganizationByNameMutex.RUnlock()
    52  	return len(fake.deleteIsolationSegmentOrganizationByNameArgsForCall)
    53  }
    54  
    55  func (fake *FakeDisableOrgIsolationActor) DeleteIsolationSegmentOrganizationByNameCalls(stub func(string, string) (v3action.Warnings, error)) {
    56  	fake.deleteIsolationSegmentOrganizationByNameMutex.Lock()
    57  	defer fake.deleteIsolationSegmentOrganizationByNameMutex.Unlock()
    58  	fake.DeleteIsolationSegmentOrganizationByNameStub = stub
    59  }
    60  
    61  func (fake *FakeDisableOrgIsolationActor) DeleteIsolationSegmentOrganizationByNameArgsForCall(i int) (string, string) {
    62  	fake.deleteIsolationSegmentOrganizationByNameMutex.RLock()
    63  	defer fake.deleteIsolationSegmentOrganizationByNameMutex.RUnlock()
    64  	argsForCall := fake.deleteIsolationSegmentOrganizationByNameArgsForCall[i]
    65  	return argsForCall.arg1, argsForCall.arg2
    66  }
    67  
    68  func (fake *FakeDisableOrgIsolationActor) DeleteIsolationSegmentOrganizationByNameReturns(result1 v3action.Warnings, result2 error) {
    69  	fake.deleteIsolationSegmentOrganizationByNameMutex.Lock()
    70  	defer fake.deleteIsolationSegmentOrganizationByNameMutex.Unlock()
    71  	fake.DeleteIsolationSegmentOrganizationByNameStub = nil
    72  	fake.deleteIsolationSegmentOrganizationByNameReturns = struct {
    73  		result1 v3action.Warnings
    74  		result2 error
    75  	}{result1, result2}
    76  }
    77  
    78  func (fake *FakeDisableOrgIsolationActor) DeleteIsolationSegmentOrganizationByNameReturnsOnCall(i int, result1 v3action.Warnings, result2 error) {
    79  	fake.deleteIsolationSegmentOrganizationByNameMutex.Lock()
    80  	defer fake.deleteIsolationSegmentOrganizationByNameMutex.Unlock()
    81  	fake.DeleteIsolationSegmentOrganizationByNameStub = nil
    82  	if fake.deleteIsolationSegmentOrganizationByNameReturnsOnCall == nil {
    83  		fake.deleteIsolationSegmentOrganizationByNameReturnsOnCall = make(map[int]struct {
    84  			result1 v3action.Warnings
    85  			result2 error
    86  		})
    87  	}
    88  	fake.deleteIsolationSegmentOrganizationByNameReturnsOnCall[i] = struct {
    89  		result1 v3action.Warnings
    90  		result2 error
    91  	}{result1, result2}
    92  }
    93  
    94  func (fake *FakeDisableOrgIsolationActor) Invocations() map[string][][]interface{} {
    95  	fake.invocationsMutex.RLock()
    96  	defer fake.invocationsMutex.RUnlock()
    97  	fake.deleteIsolationSegmentOrganizationByNameMutex.RLock()
    98  	defer fake.deleteIsolationSegmentOrganizationByNameMutex.RUnlock()
    99  	copiedInvocations := map[string][][]interface{}{}
   100  	for key, value := range fake.invocations {
   101  		copiedInvocations[key] = value
   102  	}
   103  	return copiedInvocations
   104  }
   105  
   106  func (fake *FakeDisableOrgIsolationActor) recordInvocation(key string, args []interface{}) {
   107  	fake.invocationsMutex.Lock()
   108  	defer fake.invocationsMutex.Unlock()
   109  	if fake.invocations == nil {
   110  		fake.invocations = map[string][][]interface{}{}
   111  	}
   112  	if fake.invocations[key] == nil {
   113  		fake.invocations[key] = [][]interface{}{}
   114  	}
   115  	fake.invocations[key] = append(fake.invocations[key], args)
   116  }
   117  
   118  var _ v6.DisableOrgIsolationActor = new(FakeDisableOrgIsolationActor)