const dummyMountData … func dummyFakeMount1() mount.Interface { … } type backingDevTest … type mountpointTest … func testBackingDev1(testcase backingDevTest) error { … } func TestBackingDev(t *testing.T) { … } func TestDetectMountPoint(t *testing.T) { … } var dummyMountPoints … func dummyQuotaTest() mount.Interface { … } func dummySetFSInfo(path string) { … } type VolumeProvider1 … type VolumeProvider2 … type testVolumeQuota … func logAllMaps(where string) { … } var testIDQuotaMap … var testQuotaIDMap … func (*VolumeProvider1) GetQuotaApplier(mountpoint string, backingDev string) common.LinuxVolumeQuotaApplier { … } func (*VolumeProvider2) GetQuotaApplier(mountpoint string, backingDev string) common.LinuxVolumeQuotaApplier { … } func (v testVolumeQuota) SetQuotaOnDir(dir string, id common.QuotaID, _ int64) error { … } func (v testVolumeQuota) GetQuotaOnDir(path string) (common.QuotaID, error) { … } func (v testVolumeQuota) QuotaIDIsInUse(id common.QuotaID) (bool, error) { … } func (v testVolumeQuota) GetConsumption(_ string, _ common.QuotaID) (int64, error) { … } func (v testVolumeQuota) GetInodes(_ string, _ common.QuotaID) (int64, error) { … } func fakeSupportsQuotas(path string, userNamespacesEnabled bool) (bool, error) { … } func fakeAssignQuota(path string, poduid types.UID, bytes int64, userNamespacesEnabled bool) error { … } func fakeClearQuota(path string, userNamespacesEnabled bool) error { … } type quotaTestCase … const projectsHeader … const projects1 … const projects2 … const projects3 … const projects4 … const projects5 … const projidHeader … const projid1 … const projid2 … const projid3 … const projid4 … const projid5 … var quotaTestCases … func compareProjectsFiles(t *testing.T, testcase quotaTestCase, projectsFile string, projidFile string, enabled bool) { … } func runCaseEnabled(t *testing.T, testcase quotaTestCase, seq int) bool { … } func runCaseDisabled(t *testing.T, testcase quotaTestCase, seq int) bool { … } func testAddRemoveQuotas(t *testing.T, enabled bool) { … } func TestAddRemoveQuotasEnabled(t *testing.T) { … } func TestAddRemoveQuotasDisabled(t *testing.T) { … }