code: func (c *MockCommunicator) Upload(path string, input io.Reader) error {
  	f, ok := c.Uploads[path]
  	if !ok {
  		return fmt.Errorf("Path %q not found!", path)
  	}
  
  	var buf bytes.Buffer
  	buf.ReadFrom(input)
  	content := strings.TrimSpace(buf.String())
  
  	f = strings.TrimSpace(f)
  	if f != content {
  		return fmt.Errorf("expected: %q\n\ngot: %q\n", f, content)
  	}
  
  	return nil
  }
docs: // Upload implementation of communicator.Communicator interface