MCPcopy Create free account
hub / github.com/cloudfoundry/bosh-agent / expectFormatterCalledWithArgs

Function expectFormatterCalledWithArgs

platform/windows_platform_test.go:927–936  ·  view source on GitHub ↗
(
	formatter *fakedisk.FakeWindowsDiskFormatter,
	expectedDiskNumber,
	expectedPartitionNumber string,
)

Source from the content-addressed store, hash-verified

925})
926
927func expectFormatterCalledWithArgs(
928 formatter *fakedisk.FakeWindowsDiskFormatter,
929 expectedDiskNumber,
930 expectedPartitionNumber string,
931) {
932 ExpectWithOffset(1, formatter.FormatCallCount()).To(Equal(1))
933 diskNumber, partitionNumber := formatter.FormatArgsForCall(0)
934 ExpectWithOffset(1, diskNumber).To(Equal(expectedDiskNumber))
935 ExpectWithOffset(1, partitionNumber).To(Equal(expectedPartitionNumber))
936}
937
938func expectLinkCalledWithArgs(linker *fakedisk.FakeWindowsDiskLinker, expectedLocation, expectedDriveLetter string) {
939 Expect(linker.LinkCallCount()).To(Equal(1))

Callers 1

Calls 2

FormatCallCountMethod · 0.80
FormatArgsForCallMethod · 0.80

Tested by

no test coverage detected