github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/core/mock/iostat_mock.go (about) 1 // Package mock provides a variety of mock implementations used for testing. 2 /* 3 * Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved. 4 */ 5 package mock 6 7 import ( 8 "github.com/NVIDIA/aistore/cmn" 9 "github.com/NVIDIA/aistore/ios" 10 ) 11 12 // interface guard 13 var _ ios.IOS = (*IOS)(nil) 14 15 type IOS struct { 16 Utils ios.MpathUtil 17 } 18 19 func NewIOS() *IOS { return &IOS{} } 20 func (m *IOS) GetAllMpathUtils() *ios.MpathUtil { return &m.Utils } 21 func (m *IOS) GetMpathUtil(mpath string) int64 { return m.Utils.Get(mpath) } 22 23 func (*IOS) AddMpath(string, string, ios.Label, *cmn.Config) (ios.FsDisks, error) { return nil, nil } 24 func (*IOS) RemoveMpath(string, bool) {} 25 func (*IOS) LogAppend(l []string) []string { return l } 26 func (*IOS) FillDiskStats(ios.AllDiskStats) {}