From 0b2e216475987a4987a7406a3a625fe404c320b8 Mon Sep 17 00:00:00 2001 From: rkoster Date: Mon, 2 Feb 2026 10:21:17 +0000 Subject: [PATCH] Regenerate counterfeiter fakes with v6.12.1 Run go generate to update all counterfeiter-generated fake files. Changes include: - Remove per-method mutex locks from Invocations() methods - Fix GetDefaultNetwork to properly capture IPProtocol argument - Update import alias from boship to ip for consistency --- agent/action/fakes/fake_clock.go | 12 -- agent/agentfakes/fake_start_manager.go | 4 - .../bundlecollection/fakes/fake_clock.go | 12 -- agent/applier/jobs/jobsfakes/fake_applier.go | 10 -- .../fake_blob_manager_interface.go | 10 -- .../fake_blobstore_delegator.go | 8 - .../fake_httpblob_provider.go | 4 - .../drain/drainfakes/fake_script_params.go | 12 -- .../scriptfakes/fake_cancellable_script.go | 10 -- .../scriptfakes/fake_job_script_provider.go | 6 - agent/script/scriptfakes/fake_script.go | 8 - agent/tarpath/tarpathfakes/fake_detector.go | 2 - agent/utils/utilsfakes/fake_killer.go | 2 - agentclient/fakes/fake_agent_client.go | 40 ----- .../monit/monitfakes/fake_httpclient.go | 2 - .../monitfakes/fake_request_retryable.go | 4 - mbus/mbusfakes/fake_nats_connection.go | 6 - platform/cert/certfakes/fake_manager.go | 2 - platform/disk/diskfakes/fake_manager.go | 14 -- platform/disk/diskfakes/fake_mounter.go | 20 --- platform/fakes/fake_windows_disk_manager.go | 8 - .../net/netfakes/fake_macaddress_detector.go | 2 - .../openiscsifakes/fake_open_iscsi.go | 16 -- platform/platformfakes/fake_audit_logger.go | 6 - platform/platformfakes/fake_platform.go | 147 ++---------------- platform/vitals/vitalsfakes/fake_service.go | 2 - .../disk/fakes/fake_windows_disk_formatter.go | 2 - .../disk/fakes/fake_windows_disk_linker.go | 4 - .../fakes/fake_windows_disk_partitioner.go | 10 -- .../disk/fakes/fake_windows_disk_protector.go | 4 - releasetarball/internal/fakes/compiler.go | 2 - .../fake_service_manager.go | 8 - .../fake_platform_settings_getter.go | 33 ++-- 33 files changed, 32 insertions(+), 400 deletions(-) diff --git a/agent/action/fakes/fake_clock.go b/agent/action/fakes/fake_clock.go index 0247d38ed..defdfff25 100644 --- a/agent/action/fakes/fake_clock.go +++ b/agent/action/fakes/fake_clock.go @@ -404,18 +404,6 @@ func (fake *FakeClock) SleepArgsForCall(i int) time.Duration { func (fake *FakeClock) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.afterMutex.RLock() - defer fake.afterMutex.RUnlock() - fake.newTickerMutex.RLock() - defer fake.newTickerMutex.RUnlock() - fake.newTimerMutex.RLock() - defer fake.newTimerMutex.RUnlock() - fake.nowMutex.RLock() - defer fake.nowMutex.RUnlock() - fake.sinceMutex.RLock() - defer fake.sinceMutex.RUnlock() - fake.sleepMutex.RLock() - defer fake.sleepMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/agentfakes/fake_start_manager.go b/agent/agentfakes/fake_start_manager.go index 6a0add9de..c8ced2609 100644 --- a/agent/agentfakes/fake_start_manager.go +++ b/agent/agentfakes/fake_start_manager.go @@ -141,10 +141,6 @@ func (fake *FakeStartManager) RegisterStartReturnsOnCall(i int, result1 error) { func (fake *FakeStartManager) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.canStartMutex.RLock() - defer fake.canStartMutex.RUnlock() - fake.registerStartMutex.RLock() - defer fake.registerStartMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/applier/bundlecollection/fakes/fake_clock.go b/agent/applier/bundlecollection/fakes/fake_clock.go index 0247d38ed..defdfff25 100644 --- a/agent/applier/bundlecollection/fakes/fake_clock.go +++ b/agent/applier/bundlecollection/fakes/fake_clock.go @@ -404,18 +404,6 @@ func (fake *FakeClock) SleepArgsForCall(i int) time.Duration { func (fake *FakeClock) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.afterMutex.RLock() - defer fake.afterMutex.RUnlock() - fake.newTickerMutex.RLock() - defer fake.newTickerMutex.RUnlock() - fake.newTimerMutex.RLock() - defer fake.newTimerMutex.RUnlock() - fake.nowMutex.RLock() - defer fake.nowMutex.RUnlock() - fake.sinceMutex.RLock() - defer fake.sinceMutex.RUnlock() - fake.sleepMutex.RLock() - defer fake.sleepMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/applier/jobs/jobsfakes/fake_applier.go b/agent/applier/jobs/jobsfakes/fake_applier.go index 8b9acb972..94e19b9be 100644 --- a/agent/applier/jobs/jobsfakes/fake_applier.go +++ b/agent/applier/jobs/jobsfakes/fake_applier.go @@ -388,16 +388,6 @@ func (fake *FakeApplier) PrepareReturnsOnCall(i int, result1 error) { func (fake *FakeApplier) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.applyMutex.RLock() - defer fake.applyMutex.RUnlock() - fake.configureMutex.RLock() - defer fake.configureMutex.RUnlock() - fake.deleteSourceBlobsMutex.RLock() - defer fake.deleteSourceBlobsMutex.RUnlock() - fake.keepOnlyMutex.RLock() - defer fake.keepOnlyMutex.RUnlock() - fake.prepareMutex.RLock() - defer fake.prepareMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/blobstore/blobstorefakes/fake_blob_manager_interface.go b/agent/blobstore/blobstorefakes/fake_blob_manager_interface.go index 6e658d03e..cc0b541e4 100644 --- a/agent/blobstore/blobstorefakes/fake_blob_manager_interface.go +++ b/agent/blobstore/blobstorefakes/fake_blob_manager_interface.go @@ -397,16 +397,6 @@ func (fake *FakeBlobManagerInterface) WriteReturnsOnCall(i int, result1 error) { func (fake *FakeBlobManagerInterface) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.blobExistsMutex.RLock() - defer fake.blobExistsMutex.RUnlock() - fake.deleteMutex.RLock() - defer fake.deleteMutex.RUnlock() - fake.fetchMutex.RLock() - defer fake.fetchMutex.RUnlock() - fake.getPathMutex.RLock() - defer fake.getPathMutex.RUnlock() - fake.writeMutex.RLock() - defer fake.writeMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/httpblobprovider/blobstore_delegator/blobstore_delegatorfakes/fake_blobstore_delegator.go b/agent/httpblobprovider/blobstore_delegator/blobstore_delegatorfakes/fake_blobstore_delegator.go index f1b6b88d5..e110095c9 100644 --- a/agent/httpblobprovider/blobstore_delegator/blobstore_delegatorfakes/fake_blobstore_delegator.go +++ b/agent/httpblobprovider/blobstore_delegator/blobstore_delegatorfakes/fake_blobstore_delegator.go @@ -333,14 +333,6 @@ func (fake *FakeBlobstoreDelegator) WriteReturnsOnCall(i int, result1 string, re func (fake *FakeBlobstoreDelegator) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.cleanUpMutex.RLock() - defer fake.cleanUpMutex.RUnlock() - fake.deleteMutex.RLock() - defer fake.deleteMutex.RUnlock() - fake.getMutex.RLock() - defer fake.getMutex.RUnlock() - fake.writeMutex.RLock() - defer fake.writeMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/httpblobprovider/httpblobproviderfakes/fake_httpblob_provider.go b/agent/httpblobprovider/httpblobproviderfakes/fake_httpblob_provider.go index 1c80dd3b9..88ed25e59 100644 --- a/agent/httpblobprovider/httpblobproviderfakes/fake_httpblob_provider.go +++ b/agent/httpblobprovider/httpblobproviderfakes/fake_httpblob_provider.go @@ -178,10 +178,6 @@ func (fake *FakeHTTPBlobProvider) UploadReturnsOnCall(i int, result1 crypto.Mult func (fake *FakeHTTPBlobProvider) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.getMutex.RLock() - defer fake.getMutex.RUnlock() - fake.uploadMutex.RLock() - defer fake.uploadMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/script/drain/drainfakes/fake_script_params.go b/agent/script/drain/drainfakes/fake_script_params.go index 1c9ae6c56..3603e40e7 100644 --- a/agent/script/drain/drainfakes/fake_script_params.go +++ b/agent/script/drain/drainfakes/fake_script_params.go @@ -403,18 +403,6 @@ func (fake *FakeScriptParams) UpdatedPackagesReturnsOnCall(i int, result1 []stri func (fake *FakeScriptParams) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.hashChangeMutex.RLock() - defer fake.hashChangeMutex.RUnlock() - fake.jobChangeMutex.RLock() - defer fake.jobChangeMutex.RUnlock() - fake.jobNextStateMutex.RLock() - defer fake.jobNextStateMutex.RUnlock() - fake.jobStateMutex.RLock() - defer fake.jobStateMutex.RUnlock() - fake.toStatusParamsMutex.RLock() - defer fake.toStatusParamsMutex.RUnlock() - fake.updatedPackagesMutex.RLock() - defer fake.updatedPackagesMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/script/scriptfakes/fake_cancellable_script.go b/agent/script/scriptfakes/fake_cancellable_script.go index 1e3901835..22ce86717 100644 --- a/agent/script/scriptfakes/fake_cancellable_script.go +++ b/agent/script/scriptfakes/fake_cancellable_script.go @@ -330,16 +330,6 @@ func (fake *FakeCancellableScript) TagReturnsOnCall(i int, result1 string) { func (fake *FakeCancellableScript) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.cancelMutex.RLock() - defer fake.cancelMutex.RUnlock() - fake.existsMutex.RLock() - defer fake.existsMutex.RUnlock() - fake.pathMutex.RLock() - defer fake.pathMutex.RUnlock() - fake.runMutex.RLock() - defer fake.runMutex.RUnlock() - fake.tagMutex.RLock() - defer fake.tagMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/script/scriptfakes/fake_job_script_provider.go b/agent/script/scriptfakes/fake_job_script_provider.go index 4bc8e720f..71a79ec7c 100644 --- a/agent/script/scriptfakes/fake_job_script_provider.go +++ b/agent/script/scriptfakes/fake_job_script_provider.go @@ -245,12 +245,6 @@ func (fake *FakeJobScriptProvider) NewScriptReturnsOnCall(i int, result1 script. func (fake *FakeJobScriptProvider) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.newDrainScriptMutex.RLock() - defer fake.newDrainScriptMutex.RUnlock() - fake.newParallelScriptMutex.RLock() - defer fake.newParallelScriptMutex.RUnlock() - fake.newScriptMutex.RLock() - defer fake.newScriptMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/script/scriptfakes/fake_script.go b/agent/script/scriptfakes/fake_script.go index 80c15d00d..7c5d96149 100644 --- a/agent/script/scriptfakes/fake_script.go +++ b/agent/script/scriptfakes/fake_script.go @@ -267,14 +267,6 @@ func (fake *FakeScript) TagReturnsOnCall(i int, result1 string) { func (fake *FakeScript) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.existsMutex.RLock() - defer fake.existsMutex.RUnlock() - fake.pathMutex.RLock() - defer fake.pathMutex.RUnlock() - fake.runMutex.RLock() - defer fake.runMutex.RUnlock() - fake.tagMutex.RLock() - defer fake.tagMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/tarpath/tarpathfakes/fake_detector.go b/agent/tarpath/tarpathfakes/fake_detector.go index 16dd5de75..60e5ae44d 100644 --- a/agent/tarpath/tarpathfakes/fake_detector.go +++ b/agent/tarpath/tarpathfakes/fake_detector.go @@ -94,8 +94,6 @@ func (fake *FakeDetector) DetectReturnsOnCall(i int, result1 bool, result2 error func (fake *FakeDetector) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.detectMutex.RLock() - defer fake.detectMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agent/utils/utilsfakes/fake_killer.go b/agent/utils/utilsfakes/fake_killer.go index 391671cb5..4b33717fe 100644 --- a/agent/utils/utilsfakes/fake_killer.go +++ b/agent/utils/utilsfakes/fake_killer.go @@ -43,8 +43,6 @@ func (fake *FakeKiller) KillAgentCalls(stub func()) { func (fake *FakeKiller) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.killAgentMutex.RLock() - defer fake.killAgentMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/agentclient/fakes/fake_agent_client.go b/agentclient/fakes/fake_agent_client.go index 9aef261f3..47e0807a8 100644 --- a/agentclient/fakes/fake_agent_client.go +++ b/agentclient/fakes/fake_agent_client.go @@ -1478,46 +1478,6 @@ func (fake *FakeAgentClient) UnmountDiskReturnsOnCall(i int, result1 error) { func (fake *FakeAgentClient) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.addPersistentDiskMutex.RLock() - defer fake.addPersistentDiskMutex.RUnlock() - fake.applyMutex.RLock() - defer fake.applyMutex.RUnlock() - fake.bundleLogsMutex.RLock() - defer fake.bundleLogsMutex.RUnlock() - fake.cleanUpSSHMutex.RLock() - defer fake.cleanUpSSHMutex.RUnlock() - fake.compilePackageMutex.RLock() - defer fake.compilePackageMutex.RUnlock() - fake.deleteARPEntriesMutex.RLock() - defer fake.deleteARPEntriesMutex.RUnlock() - fake.drainMutex.RLock() - defer fake.drainMutex.RUnlock() - fake.getStateMutex.RLock() - defer fake.getStateMutex.RUnlock() - fake.listDiskMutex.RLock() - defer fake.listDiskMutex.RUnlock() - fake.migrateDiskMutex.RLock() - defer fake.migrateDiskMutex.RUnlock() - fake.mountDiskMutex.RLock() - defer fake.mountDiskMutex.RUnlock() - fake.pingMutex.RLock() - defer fake.pingMutex.RUnlock() - fake.removeFileMutex.RLock() - defer fake.removeFileMutex.RUnlock() - fake.removePersistentDiskMutex.RLock() - defer fake.removePersistentDiskMutex.RUnlock() - fake.runScriptMutex.RLock() - defer fake.runScriptMutex.RUnlock() - fake.setUpSSHMutex.RLock() - defer fake.setUpSSHMutex.RUnlock() - fake.startMutex.RLock() - defer fake.startMutex.RUnlock() - fake.stopMutex.RLock() - defer fake.stopMutex.RUnlock() - fake.syncDNSMutex.RLock() - defer fake.syncDNSMutex.RUnlock() - fake.unmountDiskMutex.RLock() - defer fake.unmountDiskMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/jobsupervisor/monit/monitfakes/fake_httpclient.go b/jobsupervisor/monit/monitfakes/fake_httpclient.go index 4f5a9f2b3..603f8b3fa 100644 --- a/jobsupervisor/monit/monitfakes/fake_httpclient.go +++ b/jobsupervisor/monit/monitfakes/fake_httpclient.go @@ -93,8 +93,6 @@ func (fake *FakeHTTPClient) DoReturnsOnCall(i int, result1 *http.Response, resul func (fake *FakeHTTPClient) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.doMutex.RLock() - defer fake.doMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/jobsupervisor/monit/monitfakes/fake_request_retryable.go b/jobsupervisor/monit/monitfakes/fake_request_retryable.go index ecde50db3..6448613b5 100644 --- a/jobsupervisor/monit/monitfakes/fake_request_retryable.go +++ b/jobsupervisor/monit/monitfakes/fake_request_retryable.go @@ -147,10 +147,6 @@ func (fake *FakeRequestRetryable) ResponseReturnsOnCall(i int, result1 *http.Res func (fake *FakeRequestRetryable) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.attemptMutex.RLock() - defer fake.attemptMutex.RUnlock() - fake.responseMutex.RLock() - defer fake.responseMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/mbus/mbusfakes/fake_nats_connection.go b/mbus/mbusfakes/fake_nats_connection.go index 47bed1c01..17ffe6a0e 100644 --- a/mbus/mbusfakes/fake_nats_connection.go +++ b/mbus/mbusfakes/fake_nats_connection.go @@ -202,12 +202,6 @@ func (fake *FakeNatsConnection) SubscribeReturnsOnCall(i int, result1 *nats.Subs func (fake *FakeNatsConnection) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.closeMutex.RLock() - defer fake.closeMutex.RUnlock() - fake.publishMutex.RLock() - defer fake.publishMutex.RUnlock() - fake.subscribeMutex.RLock() - defer fake.subscribeMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/cert/certfakes/fake_manager.go b/platform/cert/certfakes/fake_manager.go index e2e58199a..4e8bf094c 100644 --- a/platform/cert/certfakes/fake_manager.go +++ b/platform/cert/certfakes/fake_manager.go @@ -87,8 +87,6 @@ func (fake *FakeManager) UpdateCertificatesReturnsOnCall(i int, result1 error) { func (fake *FakeManager) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.updateCertificatesMutex.RLock() - defer fake.updateCertificatesMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/disk/diskfakes/fake_manager.go b/platform/disk/diskfakes/fake_manager.go index 713bbd930..442aa659a 100644 --- a/platform/disk/diskfakes/fake_manager.go +++ b/platform/disk/diskfakes/fake_manager.go @@ -470,20 +470,6 @@ func (fake *FakeManager) GetUtilReturnsOnCall(i int, result1 disk.Util) { func (fake *FakeManager) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.getEphemeralDevicePartitionerMutex.RLock() - defer fake.getEphemeralDevicePartitionerMutex.RUnlock() - fake.getFormatterMutex.RLock() - defer fake.getFormatterMutex.RUnlock() - fake.getMounterMutex.RLock() - defer fake.getMounterMutex.RUnlock() - fake.getMountsSearcherMutex.RLock() - defer fake.getMountsSearcherMutex.RUnlock() - fake.getPersistentDevicePartitionerMutex.RLock() - defer fake.getPersistentDevicePartitionerMutex.RUnlock() - fake.getRootDevicePartitionerMutex.RLock() - defer fake.getRootDevicePartitionerMutex.RUnlock() - fake.getUtilMutex.RLock() - defer fake.getUtilMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/disk/diskfakes/fake_mounter.go b/platform/disk/diskfakes/fake_mounter.go index 081de5129..0693eb293 100644 --- a/platform/disk/diskfakes/fake_mounter.go +++ b/platform/disk/diskfakes/fake_mounter.go @@ -773,26 +773,6 @@ func (fake *FakeMounter) UnmountReturnsOnCall(i int, result1 bool, result2 error func (fake *FakeMounter) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.isMountPointMutex.RLock() - defer fake.isMountPointMutex.RUnlock() - fake.isMountedMutex.RLock() - defer fake.isMountedMutex.RUnlock() - fake.mountMutex.RLock() - defer fake.mountMutex.RUnlock() - fake.mountFilesystemMutex.RLock() - defer fake.mountFilesystemMutex.RUnlock() - fake.mountTmpfsMutex.RLock() - defer fake.mountTmpfsMutex.RUnlock() - fake.remountMutex.RLock() - defer fake.remountMutex.RUnlock() - fake.remountAsReadonlyMutex.RLock() - defer fake.remountAsReadonlyMutex.RUnlock() - fake.remountInPlaceMutex.RLock() - defer fake.remountInPlaceMutex.RUnlock() - fake.swapOnMutex.RLock() - defer fake.swapOnMutex.RUnlock() - fake.unmountMutex.RLock() - defer fake.unmountMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/fakes/fake_windows_disk_manager.go b/platform/fakes/fake_windows_disk_manager.go index f73275b06..2f1cd9a1c 100644 --- a/platform/fakes/fake_windows_disk_manager.go +++ b/platform/fakes/fake_windows_disk_manager.go @@ -268,14 +268,6 @@ func (fake *FakeWindowsDiskManager) GetProtectorReturnsOnCall(i int, result1 dis func (fake *FakeWindowsDiskManager) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.getFormatterMutex.RLock() - defer fake.getFormatterMutex.RUnlock() - fake.getLinkerMutex.RLock() - defer fake.getLinkerMutex.RUnlock() - fake.getPartitionerMutex.RLock() - defer fake.getPartitionerMutex.RUnlock() - fake.getProtectorMutex.RLock() - defer fake.getProtectorMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/net/netfakes/fake_macaddress_detector.go b/platform/net/netfakes/fake_macaddress_detector.go index 55d5ee98c..3de974fbe 100644 --- a/platform/net/netfakes/fake_macaddress_detector.go +++ b/platform/net/netfakes/fake_macaddress_detector.go @@ -83,8 +83,6 @@ func (fake *FakeMACAddressDetector) DetectMacAddressesReturnsOnCall(i int, resul func (fake *FakeMACAddressDetector) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.detectMacAddressesMutex.RLock() - defer fake.detectMacAddressesMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/openiscsi/openiscsifakes/fake_open_iscsi.go b/platform/openiscsi/openiscsifakes/fake_open_iscsi.go index 25f9ff5eb..5af59fe86 100644 --- a/platform/openiscsi/openiscsifakes/fake_open_iscsi.go +++ b/platform/openiscsi/openiscsifakes/fake_open_iscsi.go @@ -546,22 +546,6 @@ func (fake *FakeOpenIscsi) StopReturnsOnCall(i int, result1 error) { func (fake *FakeOpenIscsi) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.discoveryMutex.RLock() - defer fake.discoveryMutex.RUnlock() - fake.isLoggedinMutex.RLock() - defer fake.isLoggedinMutex.RUnlock() - fake.loginMutex.RLock() - defer fake.loginMutex.RUnlock() - fake.logoutMutex.RLock() - defer fake.logoutMutex.RUnlock() - fake.restartMutex.RLock() - defer fake.restartMutex.RUnlock() - fake.setupMutex.RLock() - defer fake.setupMutex.RUnlock() - fake.startMutex.RLock() - defer fake.startMutex.RUnlock() - fake.stopMutex.RLock() - defer fake.stopMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/platformfakes/fake_audit_logger.go b/platform/platformfakes/fake_audit_logger.go index f0aba6a63..0bef4b373 100644 --- a/platform/platformfakes/fake_audit_logger.go +++ b/platform/platformfakes/fake_audit_logger.go @@ -117,12 +117,6 @@ func (fake *FakeAuditLogger) StartLoggingCalls(stub func()) { func (fake *FakeAuditLogger) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.debugMutex.RLock() - defer fake.debugMutex.RUnlock() - fake.errMutex.RLock() - defer fake.errMutex.RUnlock() - fake.startLoggingMutex.RLock() - defer fake.startLoggingMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/platformfakes/fake_platform.go b/platform/platformfakes/fake_platform.go index ea84e4fd9..e7fa3ff80 100644 --- a/platform/platformfakes/fake_platform.go +++ b/platform/platformfakes/fake_platform.go @@ -8,13 +8,13 @@ import ( "github.com/cloudfoundry/bosh-agent/v2/infrastructure/devicepathresolver" "github.com/cloudfoundry/bosh-agent/v2/platform" "github.com/cloudfoundry/bosh-agent/v2/platform/cert" + "github.com/cloudfoundry/bosh-agent/v2/platform/net/ip" "github.com/cloudfoundry/bosh-agent/v2/platform/vitals" "github.com/cloudfoundry/bosh-agent/v2/servicemanager" "github.com/cloudfoundry/bosh-agent/v2/settings" "github.com/cloudfoundry/bosh-agent/v2/settings/directories" "github.com/cloudfoundry/bosh-utils/fileutil" "github.com/cloudfoundry/bosh-utils/system" - boship "github.com/cloudfoundry/bosh-agent/v2/platform/net/ip" ) type FakePlatform struct { @@ -151,9 +151,10 @@ type FakePlatform struct { getCopierReturnsOnCall map[int]struct { result1 fileutil.Copier } - GetDefaultNetworkStub func() (settings.Network, error) + GetDefaultNetworkStub func(ip.IPProtocol) (settings.Network, error) getDefaultNetworkMutex sync.RWMutex getDefaultNetworkArgsForCall []struct { + arg1 ip.IPProtocol } getDefaultNetworkReturns struct { result1 settings.Network @@ -1421,17 +1422,18 @@ func (fake *FakePlatform) GetCopierReturnsOnCall(i int, result1 fileutil.Copier) }{result1} } -func (fake *FakePlatform) GetDefaultNetwork(ipProtocol boship.IPProtocol) (settings.Network, error) { +func (fake *FakePlatform) GetDefaultNetwork(arg1 ip.IPProtocol) (settings.Network, error) { fake.getDefaultNetworkMutex.Lock() ret, specificReturn := fake.getDefaultNetworkReturnsOnCall[len(fake.getDefaultNetworkArgsForCall)] fake.getDefaultNetworkArgsForCall = append(fake.getDefaultNetworkArgsForCall, struct { - }{}) + arg1 ip.IPProtocol + }{arg1}) stub := fake.GetDefaultNetworkStub fakeReturns := fake.getDefaultNetworkReturns - fake.recordInvocation("GetDefaultNetwork", []interface{}{}) + fake.recordInvocation("GetDefaultNetwork", []interface{}{arg1}) fake.getDefaultNetworkMutex.Unlock() if stub != nil { - return stub() + return stub(arg1) } if specificReturn { return ret.result1, ret.result2 @@ -1445,12 +1447,19 @@ func (fake *FakePlatform) GetDefaultNetworkCallCount() int { return len(fake.getDefaultNetworkArgsForCall) } -func (fake *FakePlatform) GetDefaultNetworkCalls(stub func() (settings.Network, error)) { +func (fake *FakePlatform) GetDefaultNetworkCalls(stub func(ip.IPProtocol) (settings.Network, error)) { fake.getDefaultNetworkMutex.Lock() defer fake.getDefaultNetworkMutex.Unlock() fake.GetDefaultNetworkStub = stub } +func (fake *FakePlatform) GetDefaultNetworkArgsForCall(i int) ip.IPProtocol { + fake.getDefaultNetworkMutex.RLock() + defer fake.getDefaultNetworkMutex.RUnlock() + argsForCall := fake.getDefaultNetworkArgsForCall[i] + return argsForCall.arg1 +} + func (fake *FakePlatform) GetDefaultNetworkReturns(result1 settings.Network, result2 error) { fake.getDefaultNetworkMutex.Lock() defer fake.getDefaultNetworkMutex.Unlock() @@ -4350,130 +4359,6 @@ func (fake *FakePlatform) UnmountPersistentDiskReturnsOnCall(i int, result1 bool func (fake *FakePlatform) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.addUserToGroupsMutex.RLock() - defer fake.addUserToGroupsMutex.RUnlock() - fake.adjustPersistentDiskPartitioningMutex.RLock() - defer fake.adjustPersistentDiskPartitioningMutex.RUnlock() - fake.associateDiskMutex.RLock() - defer fake.associateDiskMutex.RUnlock() - fake.createUserMutex.RLock() - defer fake.createUserMutex.RUnlock() - fake.deleteARPEntryWithIPMutex.RLock() - defer fake.deleteARPEntryWithIPMutex.RUnlock() - fake.deleteEphemeralUsersMatchingMutex.RLock() - defer fake.deleteEphemeralUsersMatchingMutex.RUnlock() - fake.getAgentSettingsPathMutex.RLock() - defer fake.getAgentSettingsPathMutex.RUnlock() - fake.getAuditLoggerMutex.RLock() - defer fake.getAuditLoggerMutex.RUnlock() - fake.getCertManagerMutex.RLock() - defer fake.getCertManagerMutex.RUnlock() - fake.getCompressorMutex.RLock() - defer fake.getCompressorMutex.RUnlock() - fake.getConfiguredNetworkInterfacesMutex.RLock() - defer fake.getConfiguredNetworkInterfacesMutex.RUnlock() - fake.getCopierMutex.RLock() - defer fake.getCopierMutex.RUnlock() - fake.getDefaultNetworkMutex.RLock() - defer fake.getDefaultNetworkMutex.RUnlock() - fake.getDevicePathResolverMutex.RLock() - defer fake.getDevicePathResolverMutex.RUnlock() - fake.getDirProviderMutex.RLock() - defer fake.getDirProviderMutex.RUnlock() - fake.getEphemeralDiskPathMutex.RLock() - defer fake.getEphemeralDiskPathMutex.RUnlock() - fake.getFileContentsFromCDROMMutex.RLock() - defer fake.getFileContentsFromCDROMMutex.RUnlock() - fake.getFilesContentsFromDiskMutex.RLock() - defer fake.getFilesContentsFromDiskMutex.RUnlock() - fake.getFsMutex.RLock() - defer fake.getFsMutex.RUnlock() - fake.getHostPublicKeyMutex.RLock() - defer fake.getHostPublicKeyMutex.RUnlock() - fake.getLogsTarProviderMutex.RLock() - defer fake.getLogsTarProviderMutex.RUnlock() - fake.getMonitCredentialsMutex.RLock() - defer fake.getMonitCredentialsMutex.RUnlock() - fake.getPersistentDiskSettingsPathMutex.RLock() - defer fake.getPersistentDiskSettingsPathMutex.RUnlock() - fake.getRunnerMutex.RLock() - defer fake.getRunnerMutex.RUnlock() - fake.getServiceManagerMutex.RLock() - defer fake.getServiceManagerMutex.RUnlock() - fake.getUpdateSettingsPathMutex.RLock() - defer fake.getUpdateSettingsPathMutex.RUnlock() - fake.getVitalsServiceMutex.RLock() - defer fake.getVitalsServiceMutex.RUnlock() - fake.isMountPointMutex.RLock() - defer fake.isMountPointMutex.RUnlock() - fake.isPersistentDiskMountableMutex.RLock() - defer fake.isPersistentDiskMountableMutex.RUnlock() - fake.isPersistentDiskMountedMutex.RLock() - defer fake.isPersistentDiskMountedMutex.RUnlock() - fake.migratePersistentDiskMutex.RLock() - defer fake.migratePersistentDiskMutex.RUnlock() - fake.mountPersistentDiskMutex.RLock() - defer fake.mountPersistentDiskMutex.RUnlock() - fake.prepareForNetworkingChangeMutex.RLock() - defer fake.prepareForNetworkingChangeMutex.RUnlock() - fake.removeDevToolsMutex.RLock() - defer fake.removeDevToolsMutex.RUnlock() - fake.removeStaticLibrariesMutex.RLock() - defer fake.removeStaticLibrariesMutex.RUnlock() - fake.saveDNSRecordsMutex.RLock() - defer fake.saveDNSRecordsMutex.RUnlock() - fake.setTimeWithNtpServersMutex.RLock() - defer fake.setTimeWithNtpServersMutex.RUnlock() - fake.setUserPasswordMutex.RLock() - defer fake.setUserPasswordMutex.RUnlock() - fake.setupBlobsDirMutex.RLock() - defer fake.setupBlobsDirMutex.RUnlock() - fake.setupBoshSettingsDiskMutex.RLock() - defer fake.setupBoshSettingsDiskMutex.RUnlock() - fake.setupCanRestartDirMutex.RLock() - defer fake.setupCanRestartDirMutex.RUnlock() - fake.setupDataDirMutex.RLock() - defer fake.setupDataDirMutex.RUnlock() - fake.setupEphemeralDiskWithPathMutex.RLock() - defer fake.setupEphemeralDiskWithPathMutex.RUnlock() - fake.setupHomeDirMutex.RLock() - defer fake.setupHomeDirMutex.RUnlock() - fake.setupHostnameMutex.RLock() - defer fake.setupHostnameMutex.RUnlock() - fake.setupIPv6Mutex.RLock() - defer fake.setupIPv6Mutex.RUnlock() - fake.setupLogDirMutex.RLock() - defer fake.setupLogDirMutex.RUnlock() - fake.setupLoggingAndAuditingMutex.RLock() - defer fake.setupLoggingAndAuditingMutex.RUnlock() - fake.setupLogrotateMutex.RLock() - defer fake.setupLogrotateMutex.RUnlock() - fake.setupMonitUserMutex.RLock() - defer fake.setupMonitUserMutex.RUnlock() - fake.setupNetworkingMutex.RLock() - defer fake.setupNetworkingMutex.RUnlock() - fake.setupOptDirMutex.RLock() - defer fake.setupOptDirMutex.RUnlock() - fake.setupRawEphemeralDisksMutex.RLock() - defer fake.setupRawEphemeralDisksMutex.RUnlock() - fake.setupRecordsJSONPermissionMutex.RLock() - defer fake.setupRecordsJSONPermissionMutex.RUnlock() - fake.setupRootDiskMutex.RLock() - defer fake.setupRootDiskMutex.RUnlock() - fake.setupRuntimeConfigurationMutex.RLock() - defer fake.setupRuntimeConfigurationMutex.RUnlock() - fake.setupSSHMutex.RLock() - defer fake.setupSSHMutex.RUnlock() - fake.setupSharedMemoryMutex.RLock() - defer fake.setupSharedMemoryMutex.RUnlock() - fake.setupTmpDirMutex.RLock() - defer fake.setupTmpDirMutex.RUnlock() - fake.shutdownMutex.RLock() - defer fake.shutdownMutex.RUnlock() - fake.startMonitMutex.RLock() - defer fake.startMonitMutex.RUnlock() - fake.unmountPersistentDiskMutex.RLock() - defer fake.unmountPersistentDiskMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/vitals/vitalsfakes/fake_service.go b/platform/vitals/vitalsfakes/fake_service.go index 22efe2253..9ae7f1787 100644 --- a/platform/vitals/vitalsfakes/fake_service.go +++ b/platform/vitals/vitalsfakes/fake_service.go @@ -83,8 +83,6 @@ func (fake *FakeService) GetReturnsOnCall(i int, result1 vitals.Vitals, result2 func (fake *FakeService) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.getMutex.RLock() - defer fake.getMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/windows/disk/fakes/fake_windows_disk_formatter.go b/platform/windows/disk/fakes/fake_windows_disk_formatter.go index 40a4fe154..cba2a8262 100644 --- a/platform/windows/disk/fakes/fake_windows_disk_formatter.go +++ b/platform/windows/disk/fakes/fake_windows_disk_formatter.go @@ -89,8 +89,6 @@ func (fake *FakeWindowsDiskFormatter) FormatReturnsOnCall(i int, result1 error) func (fake *FakeWindowsDiskFormatter) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.formatMutex.RLock() - defer fake.formatMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/windows/disk/fakes/fake_windows_disk_linker.go b/platform/windows/disk/fakes/fake_windows_disk_linker.go index bbce54c98..1107409b1 100644 --- a/platform/windows/disk/fakes/fake_windows_disk_linker.go +++ b/platform/windows/disk/fakes/fake_windows_disk_linker.go @@ -166,10 +166,6 @@ func (fake *FakeWindowsDiskLinker) LinkTargetReturnsOnCall(i int, result1 string func (fake *FakeWindowsDiskLinker) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.linkMutex.RLock() - defer fake.linkMutex.RUnlock() - fake.linkTargetMutex.RLock() - defer fake.linkTargetMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/windows/disk/fakes/fake_windows_disk_partitioner.go b/platform/windows/disk/fakes/fake_windows_disk_partitioner.go index ce995e338..4be0444ca 100644 --- a/platform/windows/disk/fakes/fake_windows_disk_partitioner.go +++ b/platform/windows/disk/fakes/fake_windows_disk_partitioner.go @@ -397,16 +397,6 @@ func (fake *FakeWindowsDiskPartitioner) PartitionDiskReturnsOnCall(i int, result func (fake *FakeWindowsDiskPartitioner) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.assignDriveLetterMutex.RLock() - defer fake.assignDriveLetterMutex.RUnlock() - fake.getCountOnDiskMutex.RLock() - defer fake.getCountOnDiskMutex.RUnlock() - fake.getFreeSpaceOnDiskMutex.RLock() - defer fake.getFreeSpaceOnDiskMutex.RUnlock() - fake.initializeDiskMutex.RLock() - defer fake.initializeDiskMutex.RUnlock() - fake.partitionDiskMutex.RLock() - defer fake.partitionDiskMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/platform/windows/disk/fakes/fake_windows_disk_protector.go b/platform/windows/disk/fakes/fake_windows_disk_protector.go index 803872010..73b1894e2 100644 --- a/platform/windows/disk/fakes/fake_windows_disk_protector.go +++ b/platform/windows/disk/fakes/fake_windows_disk_protector.go @@ -150,10 +150,6 @@ func (fake *FakeWindowsDiskProtector) ProtectPathReturnsOnCall(i int, result1 er func (fake *FakeWindowsDiskProtector) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.commandExistsMutex.RLock() - defer fake.commandExistsMutex.RUnlock() - fake.protectPathMutex.RLock() - defer fake.protectPathMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/releasetarball/internal/fakes/compiler.go b/releasetarball/internal/fakes/compiler.go index f1e00dc08..a4adba63d 100644 --- a/releasetarball/internal/fakes/compiler.go +++ b/releasetarball/internal/fakes/compiler.go @@ -106,8 +106,6 @@ func (fake *Compiler) CompileReturnsOnCall(i int, result1 string, result2 crypto func (fake *Compiler) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.compileMutex.RLock() - defer fake.compileMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/servicemanager/servicemanagerfakes/fake_service_manager.go b/servicemanager/servicemanagerfakes/fake_service_manager.go index b7e6b1458..7eab26ed3 100644 --- a/servicemanager/servicemanagerfakes/fake_service_manager.go +++ b/servicemanager/servicemanagerfakes/fake_service_manager.go @@ -303,14 +303,6 @@ func (fake *FakeServiceManager) StopReturnsOnCall(i int, result1 error) { func (fake *FakeServiceManager) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.killMutex.RLock() - defer fake.killMutex.RUnlock() - fake.setupMutex.RLock() - defer fake.setupMutex.RUnlock() - fake.startMutex.RLock() - defer fake.startMutex.RUnlock() - fake.stopMutex.RLock() - defer fake.stopMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value diff --git a/settings/settingsfakes/fake_platform_settings_getter.go b/settings/settingsfakes/fake_platform_settings_getter.go index 7987b4937..f63f39329 100644 --- a/settings/settingsfakes/fake_platform_settings_getter.go +++ b/settings/settingsfakes/fake_platform_settings_getter.go @@ -4,8 +4,8 @@ package settingsfakes import ( "sync" + "github.com/cloudfoundry/bosh-agent/v2/platform/net/ip" "github.com/cloudfoundry/bosh-agent/v2/settings" - boship "github.com/cloudfoundry/bosh-agent/v2/platform/net/ip" ) type FakePlatformSettingsGetter struct { @@ -20,9 +20,10 @@ type FakePlatformSettingsGetter struct { getAgentSettingsPathReturnsOnCall map[int]struct { result1 string } - GetDefaultNetworkStub func() (settings.Network, error) + GetDefaultNetworkStub func(ip.IPProtocol) (settings.Network, error) getDefaultNetworkMutex sync.RWMutex getDefaultNetworkArgsForCall []struct { + arg1 ip.IPProtocol } getDefaultNetworkReturns struct { result1 settings.Network @@ -129,17 +130,18 @@ func (fake *FakePlatformSettingsGetter) GetAgentSettingsPathReturnsOnCall(i int, }{result1} } -func (fake *FakePlatformSettingsGetter) GetDefaultNetwork(ipProtocol boship.IPProtocol) (settings.Network, error) { +func (fake *FakePlatformSettingsGetter) GetDefaultNetwork(arg1 ip.IPProtocol) (settings.Network, error) { fake.getDefaultNetworkMutex.Lock() ret, specificReturn := fake.getDefaultNetworkReturnsOnCall[len(fake.getDefaultNetworkArgsForCall)] fake.getDefaultNetworkArgsForCall = append(fake.getDefaultNetworkArgsForCall, struct { - }{}) + arg1 ip.IPProtocol + }{arg1}) stub := fake.GetDefaultNetworkStub fakeReturns := fake.getDefaultNetworkReturns - fake.recordInvocation("GetDefaultNetwork", []interface{}{}) + fake.recordInvocation("GetDefaultNetwork", []interface{}{arg1}) fake.getDefaultNetworkMutex.Unlock() if stub != nil { - return stub() + return stub(arg1) } if specificReturn { return ret.result1, ret.result2 @@ -153,12 +155,19 @@ func (fake *FakePlatformSettingsGetter) GetDefaultNetworkCallCount() int { return len(fake.getDefaultNetworkArgsForCall) } -func (fake *FakePlatformSettingsGetter) GetDefaultNetworkCalls(stub func() (settings.Network, error)) { +func (fake *FakePlatformSettingsGetter) GetDefaultNetworkCalls(stub func(ip.IPProtocol) (settings.Network, error)) { fake.getDefaultNetworkMutex.Lock() defer fake.getDefaultNetworkMutex.Unlock() fake.GetDefaultNetworkStub = stub } +func (fake *FakePlatformSettingsGetter) GetDefaultNetworkArgsForCall(i int) ip.IPProtocol { + fake.getDefaultNetworkMutex.RLock() + defer fake.getDefaultNetworkMutex.RUnlock() + argsForCall := fake.getDefaultNetworkArgsForCall[i] + return argsForCall.arg1 +} + func (fake *FakePlatformSettingsGetter) GetDefaultNetworkReturns(result1 settings.Network, result2 error) { fake.getDefaultNetworkMutex.Lock() defer fake.getDefaultNetworkMutex.Unlock() @@ -363,16 +372,6 @@ func (fake *FakePlatformSettingsGetter) SetupBoshSettingsDiskReturnsOnCall(i int func (fake *FakePlatformSettingsGetter) Invocations() map[string][][]interface{} { fake.invocationsMutex.RLock() defer fake.invocationsMutex.RUnlock() - fake.getAgentSettingsPathMutex.RLock() - defer fake.getAgentSettingsPathMutex.RUnlock() - fake.getDefaultNetworkMutex.RLock() - defer fake.getDefaultNetworkMutex.RUnlock() - fake.getPersistentDiskSettingsPathMutex.RLock() - defer fake.getPersistentDiskSettingsPathMutex.RUnlock() - fake.getUpdateSettingsPathMutex.RLock() - defer fake.getUpdateSettingsPathMutex.RUnlock() - fake.setupBoshSettingsDiskMutex.RLock() - defer fake.setupBoshSettingsDiskMutex.RUnlock() copiedInvocations := map[string][][]interface{}{} for key, value := range fake.invocations { copiedInvocations[key] = value