goc/pkg/mock/clients/github.go
2020-07-27 10:38:12 +08:00

25 lines
550 B
Go

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 ""
}