MCPcopy Index your code
hub / github.com/containerd/containerd / getFileSize

Function getFileSize

integration/release_upgrade_linux_test.go:398–402  ·  view source on GitHub ↗

getFileSize returns file's size.

(t *testing.T, filePath string)

Source from the content-addressed store, hash-verified

396
397// getFileSize returns file's size.
398func getFileSize(t *testing.T, filePath string) int64 {
399 st, err := os.Stat(filePath)
400 require.NoError(t, err)
401 return st.Size()
402}
403
404func shouldManipulateContainersInPodAfterUpgrade(runtimeHandler string) setupUpgradeVerifyCase {
405 return func(t *testing.T, taskVersion int, rSvc *remote.RuntimeService, iSvc *remote.ImageService) ([]upgradeVerifyCaseFunc, beforeUpgradeHookFunc) {

Callers 1

execToExistingContainerFunction · 0.85

Calls 2

StatMethod · 0.65
SizeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…