// Command returns commands from the Commands channel unless a nil is sent.
// Then an error is returned.
Command returns commands from the Commands channel unless a nil is sent.
Then an error is returned.
// Command returns commands from the Commands channel unless a nil is sent . // Then an error is returned .
func (c *TestCoord) Command() (Command, error) {
	cmd := <-c.Commands
	if cmd == nil {
		return cmd, errors.New("test error")
	}
	return cmd, nil
}
func ( c * TestCoord ) Command ( ) ( Command , error ) { cmd := <- c . Commands if cmd == nil { return cmd , errors . New ( " " ) } return cmd , nil }
Command returns commands from the Commands channel unless a nil is sent.
Command returns commands from the Commands channel unless a nil is sent .