juju: github.com/rogpeppe/juju/state/apiserver/common/testing Index | Files

package testing

import "github.com/rogpeppe/juju/state/apiserver/common/testing"

Index

Package Files

environwatcher.go

Constants

const (
    HasSecrets = true
    NoSecrets  = false
)

type EnvironWatcherTest Uses

type EnvironWatcherTest struct {
    // contains filtered or unexported fields
}

func NewEnvironWatcherTest Uses

func NewEnvironWatcherTest(
    envWatcher EnvironmentWatcher,
    st *state.State,
    resources *common.Resources,
    hasSecrets bool) *EnvironWatcherTest

func (*EnvironWatcherTest) AssertEnvironConfig Uses

func (s *EnvironWatcherTest) AssertEnvironConfig(c *gc.C, envWatcher EnvironmentWatcher, hasSecrets bool)

AssertEnvironConfig provides a method to test the config from the envWatcher. This allows other tests that embed this type to have more than just the default test.

func (*EnvironWatcherTest) TestEnvironConfig Uses

func (s *EnvironWatcherTest) TestEnvironConfig(c *gc.C)

func (*EnvironWatcherTest) TestWatchForEnvironConfigChanges Uses

func (s *EnvironWatcherTest) TestWatchForEnvironConfigChanges(c *gc.C)

type EnvironmentWatcher Uses

type EnvironmentWatcher interface {
    WatchForEnvironConfigChanges() (params.NotifyWatchResult, error)
    EnvironConfig() (params.EnvironConfigResult, error)
}

Package testing imports 7 packages (graph). Updated 2016-07-27. Refresh now. Tools for package owners.