func (f *Cloud) List(filter string) ([]types.NodeName, error) {
	f.addCall("list")
	result := []types.NodeName{}
	for _, machine := range f.Machines {
		if match, _ := regexp.MatchString(filter, string(machine)); match {
			result = append(result, machine)
		}
	}
	return result, f.Err
}
// List is a test-spy implementation of Instances.List.
// It adds an entry "list" into the internal method call record.
List is a test-spy implementation of Instances.List.
It adds an entry "list" into the internal method call record.
// List is a test - spy implementation of Instances . List . // It adds an entry " list " into the internal method call record .
func (f *Cloud) List(filter string) ([]types.NodeName, error) {
	f.addCall("list")
	result := []types.NodeName{}
	for _, machine := range f.Machines {
		if match, _ := regexp.MatchString(filter, string(machine)); match {
			result = append(result, machine)
		}
	}
	return result, f.Err
}
func ( f * Cloud ) List ( filter string ) ( [ ] types . NodeName , error ) { f . addCall ( " " ) result := [ ] types . NodeName { } for _ , machine := range f . Machines { if match , _ := regexp . MatchString ( filter , string ( machine ) ) ; match { result = append ( result , machine ) } } return result , f . Err }
List is a test-spy implementation of Instances.List.
List is a test - spy implementation of Instances . List .