github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/apiserver/migrationminion/export_test.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package migrationminion
     5  
     6  import "github.com/juju/juju/state"
     7  
     8  func PatchState(p Patcher, st Backend) {
     9  	p.PatchValue(&getBackend, func(*state.State) Backend {
    10  		return st
    11  	})
    12  }
    13  
    14  type Patcher interface {
    15  	PatchValue(ptr, value interface{})
    16  }