func fakeUpdater(versionUpdates []VersionUpdate, orgDepFiles, uptDepFiles *[]models.DependencyFile) error { f := models.DependencyFile{Path: "Gemfile.lock", SHA: "09c2f8647e14e49e922b955c194102070597c2d1", Content: []byte("original content")} *orgDepFiles = append(*orgDepFiles, f) f.Content = []byte("updated content") f.SHA = "141162477fd3bf27aed3bbea4fe3d17c71d6c7be" *uptDepFiles = append(*uptDepFiles, f) return nil }