github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/utils/filelock/export_test.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package filelock 5 6 // IsLocked is used just to see if the local lock instance is locked, and 7 // is only required for use in tests. 8 func IsLocked(lock *Lock) bool { 9 return lock.lockFile != nil 10 }