code: func (mock *Mock) Encode(data []*FileDataEntry) ([]byte, error) {
  	items := mock.getReturnValues("Decode")
  	if len(items) == 1 {
  		switch typed := items[0].(type) {
  		case []byte:
  			return typed, nil
  		case error:
  			return []byte{}, typed
  		}
  	} else if len(items) == 2 {
  		return items[0].([]byte), items[1].(error)
  	}
  	return []byte{}, nil
  }
docs: // Encode mocks original method