github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/apiserver/metricsender/export_test.go (about) 1 // Copyright 2014 Canonical Ltd. All rights reserved. 2 3 package metricsender 4 5 import "github.com/juju/testing" 6 7 func PatchHost(host string) func() { 8 restoreHost := testing.PatchValue(&metricsHost, host) 9 return func() { 10 restoreHost() 11 } 12 }