goc/pkg/mock/clients/github.go

25 lines
550 B
Go
Raw Normal View History

2020-07-24 09:27:03 +00:00
package clients
import "github.com/qiniu/goc/pkg/cover"
type MockPrComment struct {
}
func (s *MockPrComment) GetPrChangedFiles() (files []string, err error) {
return nil, nil
}
func (s *MockPrComment) PostComment(content, commentPrefix string) error {
return nil
}
func (s *MockPrComment) EraseHistoryComment(commentPrefix string) error {
return nil
}
func (s *MockPrComment) CreateGithubComment(commentPrefix string, diffCovList cover.DeltaCovList) (err error) {
return nil
}
func (s *MockPrComment) GetCommentFlag() string {
return ""
}