• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moosetechnology / GitProjectHealth / 15685699682

16 Jun 2025 03:55PM UTC coverage: 74.453% (+1.2%) from 73.222%
15685699682

push

github

web-flow
Merge pull request #202 from moosetechnology/develop

Update Main

1293 of 2646 new or added lines in 26 files covered. (48.87%)

62 existing lines in 3 files now uncovered.

17142 of 23024 relevant lines covered (74.45%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.42
/src/GitLabHealth-Model-Analysis-Tests/GLPHImporterMock.class.st
1
Class {
2
        #name : #GLPHImporterMock,
3
        #superclass : #Object,
4
        #instVars : [
5
                'commits',
6
                'commitDiffs',
7
                'mergeRequests',
8
                'glhModel',
9
                'notes',
10
                'tags'
11
        ],
12
        #category : #'GitLabHealth-Model-Analysis-Tests'
13
}
14

15
{ #category : #equality }
16
GLPHImporterMock >> blockOnIdEquality [
1✔
17

1✔
18
        ^ [ :existing :new | existing id = new id ].
1✔
19
]
1✔
20

21
{ #category : #commit }
22
GLPHImporterMock >> chainsCommitsFrom: fromCommits [
1✔
23
        ^self
1✔
24
         
1✔
25
]
1✔
26

27
{ #category : #accessing }
28
GLPHImporterMock >> commits [
1✔
29

1✔
30
        ^ commits
1✔
31
]
1✔
32

33
{ #category : #accessing }
34
GLPHImporterMock >> commits: anObject [
1✔
35

1✔
36
        commits := anObject
1✔
37
]
1✔
38

39
{ #category : #'as yet unclassified' }
40
GLPHImporterMock >> completeImportedCommit: commit [
1✔
41
        ^self
1✔
42
]
1✔
43

44
{ #category : #accessing }
45
GLPHImporterMock >> glhModel [
1✔
46

1✔
47
        ^ glhModel
1✔
48
]
1✔
49

50
{ #category : #accessing }
51
GLPHImporterMock >> glhModel: anObject [
×
52

×
53
        glhModel := anObject
×
54
]
×
55

56
{ #category : #'import - commits' }
57
GLPHImporterMock >> importCommit: aString ofProject: aGLHProject [ 
1✔
58
        ^ self commits detect: [ :c | c id = aString ] ifNone: [nil].
1✔
59
]
1✔
60

61
{ #category : #commit }
62
GLPHImporterMock >> importCommitsOfProject: project since: since until: until [
1✔
63

1✔
64
        self flag: 'Adds commits regardless of their creation date !'.
1✔
65
        glhModel addAll: commits.
1✔
66
        ^ commits select: [ :commit | commit repository project = project ].
1✔
67
]
1✔
68

69
{ #category : #'as yet unclassified' }
70
GLPHImporterMock >> importCreatorOfCommit: commit [
1✔
71

1✔
72
        ^self
1✔
73
]
1✔
74

75
{ #category : #'import - merge request' }
76
GLPHImporterMock >> importMergeRequestCommits: mergeRequest [
1✔
77

1✔
78
        mergeRequest commits: self commits
1✔
79
]
1✔
80

81
{ #category : #'import - merge request' }
82
GLPHImporterMock >> importMergeRequestMergeCommits: aGLHMergeRequest [ 
1✔
83
        ^ {aGLHMergeRequest mergedCommit . aGLHMergeRequest squashCommit . aGLHMergeRequest mergeRequestCommit } .
1✔
84
]
1✔
85

86
{ #category : #'import - merge request' }
87
GLPHImporterMock >> importMergeRequests: project since: since until: until [
1✔
88

1✔
89
        self flag: 'Adds MR regardless of their creation date !'.
1✔
90
        glhModel addAll: mergeRequests .
1✔
91
        
1✔
92
        ^ (mergeRequests select: [ :mr | mr project = project  ]) 
1✔
93
]
1✔
94

95
{ #category : #'import - merge request' }
96
GLPHImporterMock >> importMergeResquestAuthor: mr [
1✔
97
        ^self
1✔
98
]
1✔
99

100
{ #category : #'import - merge request' }
101
GLPHImporterMock >> importMergeResquestMerger: mergeRequest [
1✔
102
        ^self
1✔
103
]
1✔
104

105
{ #category : #'import - notes' }
106
GLPHImporterMock >> importNotesfromMergeRequest: mriid [
1✔
107

1✔
108
        ^OrderedCollection with: (notes select: [ :note | (note noteable_iid == mriid) ]) 
1✔
109
]
1✔
110

111
{ #category : #'import - tag' }
NEW
112
GLPHImporterMock >> importTagsForProject: aGLHProject [ 
×
NEW
113
        ^ tags.
×
NEW
114
]
×
115

116
{ #category : #initialization }
117
GLPHImporterMock >> initialize [
1✔
118

1✔
119
        commits := OrderedCollection new.
1✔
120
        mergeRequests := OrderedCollection new.
1✔
121

1✔
122
        glhModel := GLHModel new name: 'model'
1✔
123
]
1✔
124

125
{ #category : #accessing }
126
GLPHImporterMock >> mergeRequests [
×
127

×
128
        ^ mergeRequests
×
129
]
×
130

131
{ #category : #accessing }
132
GLPHImporterMock >> mergeRequests: anObject [
1✔
133

1✔
134
        mergeRequests := anObject
1✔
135
]
1✔
136

137
{ #category : #accessing }
138
GLPHImporterMock >> notes [
1✔
139

1✔
140
        ^notes
1✔
141
]
1✔
142

143
{ #category : #accessing }
144
GLPHImporterMock >> notes: anObject [
1✔
145

1✔
146
        notes := anObject 
1✔
147
]
1✔
148

149
{ #category : #accessing }
NEW
150
GLPHImporterMock >> tags: aCollection [ 
×
NEW
151
        tags := aCollection .
×
NEW
152
]
×
153

154
{ #category : #accessing }
155
GLPHImporterMock >> withCommitDiffs: aCommitDiffs [
1✔
156
        commitDiffs := aCommitDiffs 
1✔
157
]
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc