prow/github/fakegithub/fakegithub.go
func (f *FakeClient) DeleteComment(owner, repo string, ID int) error {
	f.IssueCommentsDeleted = append(f.IssueCommentsDeleted, fmt.Sprintf("%s/%s#%d", owner, repo, ID))
	for num, ics := range f.IssueComments {
		for i, ic := range ics {
			if ic.ID == ID {
				f.IssueComments[num] = append(ics[:i], ics[i+1:]...)
				return nil
			}
		}
	}
	return fmt.Errorf("could not find issue comment %d", ID)
}
func (f *FakeClient) DeleteComment(owner, repo string, ID int) error {
	f.IssueCommentsDeleted = append(f.IssueCommentsDeleted, fmt.Sprintf("%s/%s#%d", owner, repo, ID))
	for num, ics := range f.IssueComments {
		for i, ic := range ics {
			if ic.ID == ID {
				f.IssueComments[num] = append(ics[:i], ics[i+1:]...)
				return nil
			}
		}
	}
	return fmt.Errorf("could not find issue comment %d", ID)
}
func ( f * FakeClient ) DeleteComment ( owner , repo string , ID int ) error { f . IssueCommentsDeleted = append ( f . IssueCommentsDeleted , fmt . Sprintf ( " " , owner , repo , ID ) ) for num , ics := range f . IssueComments { for i , ic := range ics { if ic . ID == ID { f . IssueComments [ num ] = append ( ics [ : i ] , ics [ i + 1 : ] ... ) return nil } } } return fmt . Errorf ( " " , ID ) }
// DeleteComment deletes a comment.
DeleteComment deletes a comment .