watch/watcher.go
func (w *Watcher) ForceWatching(d dep.Dependency, enabled bool) {
	w.Lock()
	defer w.Unlock()

	if enabled {
		w.depViewMap[d.String()] = nil
	} else {
		delete(w.depViewMap, d.String())
	}
}
func (w *Watcher) ForceWatching(d dep.Dependency, enabled bool) {
	w.Lock()
	defer w.Unlock()

	if enabled {
		w.depViewMap[d.String()] = nil
	} else {
		delete(w.depViewMap, d.String())
	}
}
func ( w * Watcher ) ForceWatching ( d dep . Dependency , enabled bool ) { w . Lock ( ) defer w . Unlock ( ) if enabled { w . depViewMap [ d . String ( ) ] = nil } else { delete ( w . depViewMap , d . String ( ) ) } }
// ForceWatching is used to force setting the internal state of watching
// a dependency. This is only used for unit testing purposes.
ForceWatching is used to force setting the internal state of watching a dependency . This is only used for unit testing purposes .