launchpad.net/~rogpeppe/juju-core/500-errgo-fix@v0.0.0-20140213181702-000000002356/state/api/export_test.go (about)

     1  // Copyright 2012, 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package api
     5  
     6  // SetServerRoot allows changing the URL to the internal API server
     7  // that AddLocalCharm uses in order to test NotImplementedError.
     8  
     9  func SetServerRoot(c *Client, root string) {
    10  	c.st.serverRoot = root
    11  }