// WatchForEnvironConfigChanges implements EnvironConfigObserver.
func (s *fakeState) WatchForEnvironConfigChanges() (apiwatcher.NotifyWatcher, error) {
s.mu.Lock()
defer s.mu.Unlock()
s.MethodCall(s, "WatchForEnvironConfigChanges")
if err := s.NextErr(); err != nil {
return nil, err
}
return s, nil
}
// EnvironConfig implements EnvironConfigObserver.
func (s *fakeState) EnvironConfig() (*config.Config, error) {
s.mu.Lock()
defer s.mu.Unlock()
s.MethodCall(s, "EnvironConfig")
if err := s.NextErr(); err != nil {
return nil, err
}
return s.config, nil
}