github.com/rogpeppe/juju@v0.0.0-20140613142852-6337964b789e/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  var (
     7  	NewWebsocketDialer = newWebsocketDialer
     8  
     9  	WebsocketDialConfig = &websocketDialConfig
    10  	SetUpWebsocket      = setUpWebsocket
    11  	SlideAddressToFront = slideAddressToFront
    12  )
    13  
    14  // SetServerRoot allows changing the URL to the internal API server
    15  // that AddLocalCharm uses in order to test NotImplementedError.
    16  func SetServerRoot(c *Client, root string) {
    17  	c.st.serverRoot = root
    18  }