Skip to content

Commit dfceab4

Browse files
committed
fix test
1 parent fd0b4e4 commit dfceab4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

bot/condition_test.go

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import (
66
)
77

88
type mockConditionEventData struct {
9+
Number int
10+
Owner string
11+
Repo string
912
Labels []string
1013
FileNames []string
1114
FileExtensions []string
@@ -17,8 +20,8 @@ func (m *mockConditionEventData) GetRef() string {
1720
return m.Ref
1821
}
1922

20-
func (*mockConditionEventData) GetNumber() int {
21-
panic("implement me")
23+
func (m *mockConditionEventData) GetNumber() int {
24+
return m.Number
2225
}
2326

2427
func (m *mockConditionEventData) GetTitle() string {
@@ -33,12 +36,12 @@ func (*mockConditionEventData) GetOrigin() string {
3336
panic("implement me")
3437
}
3538

36-
func (*mockConditionEventData) GetOwner() string {
37-
panic("implement me")
39+
func (m *mockConditionEventData) GetOwner() string {
40+
return m.Owner
3841
}
3942

40-
func (*mockConditionEventData) GetRepo() string {
41-
panic("implement me")
43+
func (m *mockConditionEventData) GetRepo() string {
44+
return m.Repo
4245
}
4346

4447
func (m *mockConditionEventData) GetLabels() []string {

0 commit comments

Comments
 (0)