github.com/cloudbase/juju-core@v0.0.0-20140504232958-a7271ac7912f/worker/uniter/charm/export_test.go (about)

     1  // Copyright 2012, 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package charm
     5  
     6  // exported so we can get the deployer path from tests.
     7  func GitDeployerDataPath(d Deployer) string {
     8  	return d.(*gitDeployer).dataPath
     9  }
    10  
    11  // exported so we can get the deployer current git repo from tests.
    12  func GitDeployerCurrent(d Deployer) *GitDir {
    13  	return d.(*gitDeployer).current
    14  }