github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/storage/looputil/export_test.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package looputil 5 6 import "os" 7 8 func NewTestLoopDeviceManager( 9 run func(cmd string, args ...string) (string, error), 10 stat func(path string) (os.FileInfo, error), 11 inode func(info os.FileInfo) uint64, 12 ) LoopDeviceManager { 13 return &loopDeviceManager{run, stat, inode} 14 }