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

moosetechnology / GitProjectHealth / 10452237749

19 Aug 2024 11:10AM UTC coverage: 18.86% (-14.8%) from 33.667%
10452237749

Pull #31

github

web-flow
Merge 2cf167214 into 48c9c9c78
Pull Request #31: fix: error if there are no commits in averageTimeBetweenCommits method

163 of 1071 new or added lines in 15 files covered. (15.22%)

856 existing lines in 12 files now uncovered.

1585 of 8404 relevant lines covered (18.86%)

0.19 hits per line

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

18.05
/src/GitLabHealth-Model/GLHCommit.class.st
1
"
2
a commit attached to a repository
3

4
## Relations
5
======================
6

7
### Parents
8
| Relation | Origin | Opposite | Type | Comment |
9
|---|
10
| `branch` | `GLHCommit` | `commits` | `GLHBranch` | |
11
| `commitCreator` | `GLHCommit` | `commits` | `GLHUser` | |
12
| `repository` | `GLHCommit` | `commits` | `GLHRepository` | |
13

14
### Children
15
| Relation | Origin | Opposite | Type | Comment |
16
|---|
17
| `diffs` | `GLHCommit` | `commit` | `GLHDiff` | |
18
| `jobs` | `GLHCommit` | `commit` | `GLHJob` | |
19

20
### Other
21
| Relation | Origin | Opposite | Type | Comment |
22
|---|
23
| `childCommits` | `GLHCommit` | `parentCommits` | `GLHCommit` | |
24
| `parentCommits` | `GLHCommit` | `childCommits` | `GLHCommit` | |
25

26

27
## Properties
28
======================
29

30
| Name | Type | Default value | Comment |
31
|---|
32
| `additions` | `Number` | nil | The number of line that git consider added|
33
| `author_email` | `String` | nil | |
34
| `author_name` | `String` | nil | |
35
| `authored_date` | `Object` | nil | |
36
| `committed_date` | `Object` | nil | |
37
| `committer_email` | `String` | nil | |
38
| `committer_name` | `String` | nil | |
39
| `created_at` | `Object` | nil | |
40
| `deletions` | `Number` | nil | The number of line that git consider deleted|
41
| `id` | `String` | nil | |
42
| `message` | `String` | nil | |
43
| `name` | `String` | nil | Basic name of the entity, not full reference.|
44
| `parent_ids` | `Object` | 'OrderedCollection new' | |
45
| `short_id` | `String` | nil | |
46
| `title` | `String` | nil | |
47
| `web_url` | `String` | nil | |
48

49
"
50
Class {
51
        #name : #GLHCommit,
52
        #superclass : #GLHEntity,
53
        #traits : 'FamixTNamedEntity',
54
        #classTraits : 'FamixTNamedEntity classTrait',
55
        #instVars : [
56
                '#additions => FMProperty',
57
                '#author_email => FMProperty',
58
                '#author_name => FMProperty',
59
                '#authored_date => FMProperty',
60
                '#branch => FMOne type: #GLHBranch opposite: #commits',
61
                '#childCommits => FMMany type: #GLHCommit opposite: #parentCommits',
62
                '#commitCreator => FMOne type: #GLHUser opposite: #commits',
63
                '#committed_date => FMProperty',
64
                '#committer_email => FMProperty',
65
                '#committer_name => FMProperty',
66
                '#created_at => FMProperty',
67
                '#deletions => FMProperty',
68
                '#diffs => FMMany type: #GLHDiff opposite: #commit',
69
                '#id => FMProperty',
70
                '#jobs => FMMany type: #GLHJob opposite: #commit',
71
                '#message => FMProperty',
72
                '#parentCommits => FMMany type: #GLHCommit opposite: #childCommits',
73
                '#parent_ids => FMProperty defaultValue: ((OrderedCollection new))',
74
                '#repository => FMOne type: #GLHRepository opposite: #commits',
75
                '#short_id => FMProperty',
76
                '#title => FMProperty',
77
                '#web_url => FMProperty'
78
        ],
79
        #category : #'GitLabHealth-Model-Entities'
80
}
81

82
{ #category : #meta }
83
GLHCommit class >> annotation [
×
84

×
85
        <FMClass: #Commit super: #GLHEntity>
×
86
        <package: #'GitLabHealth-Model'>
×
87
        <generated>
×
88
        ^ self
×
89
]
×
90

91
{ #category : #adding }
92
GLHCommit >> addChildCommit: anObject [
×
93
        <generated>
×
94
        ^ self childCommits add: anObject
×
95
]
×
96

97
{ #category : #adding }
UNCOV
98
GLHCommit >> addDiff: anObject [
×
UNCOV
99
        <generated>
×
UNCOV
100
        ^ self diffs add: anObject
×
UNCOV
101
]
×
102

103
{ #category : #adding }
104
GLHCommit >> addJob: anObject [
×
105
        <generated>
×
106
        ^ self jobs add: anObject
×
107
]
×
108

109
{ #category : #adding }
110
GLHCommit >> addParentCommit: anObject [
×
111
        <generated>
×
112
        ^ self parentCommits add: anObject
×
113
]
×
114

115
{ #category : #accessing }
UNCOV
116
GLHCommit >> additions [
×
UNCOV
117

×
UNCOV
118
        <FMProperty: #additions type: #Number>
×
UNCOV
119
        <generated>
×
UNCOV
120
        <FMComment: 'The number of line that git consider added'>
×
UNCOV
121
        ^ additions
×
UNCOV
122
]
×
123

124
{ #category : #accessing }
125
GLHCommit >> additions: anObject [
1✔
126
        <generated>
1✔
127
        additions := anObject
1✔
128
]
1✔
129

130
{ #category : #accessing }
131
GLHCommit >> author_email [
×
132

×
133
        <FMProperty: #author_email type: #String>
×
134
        <generated>
×
135
        ^ author_email
×
136
]
×
137

138
{ #category : #accessing }
139
GLHCommit >> author_email: anObject [
×
140
        <generated>
×
141
        author_email := anObject
×
142
]
×
143

144
{ #category : #accessing }
145
GLHCommit >> author_name [
1✔
146

1✔
147
        <FMProperty: #author_name type: #String>
1✔
148
        <generated>
1✔
149
        ^ author_name
1✔
150
]
1✔
151

152
{ #category : #accessing }
153
GLHCommit >> author_name: anObject [
×
154
        <generated>
×
155
        author_name := anObject
×
156
]
×
157

158
{ #category : #accessing }
159
GLHCommit >> authored_date [
×
160

×
161
        <FMProperty: #authored_date type: #Object>
×
162
        <generated>
×
163
        ^ authored_date
×
164
]
×
165

166
{ #category : #accessing }
167
GLHCommit >> authored_date: anObject [
×
168
        <generated>
×
169
        authored_date := anObject
×
170
]
×
171

172
{ #category : #accessing }
173
GLHCommit >> branch [
×
174
        "Relation named: #branch type: #GLHBranch opposite: #commits"
×
175

×
176
        <generated>
×
177
        <container>
×
178
        ^ branch
×
179
]
×
180

181
{ #category : #accessing }
182
GLHCommit >> branch: anObject [
×
183

×
184
        <generated>
×
185
        branch := anObject
×
186
]
×
187

188
{ #category : #navigation }
189
GLHCommit >> branchGroup [
×
190
        <generated>
×
191
        <navigation: 'Branch'>
×
192
        ^ MooseSpecializedGroup with: self branch
×
193
]
×
194

195
{ #category : #accessing }
UNCOV
196
GLHCommit >> childCommits [
×
UNCOV
197
        "Relation named: #childCommits type: #GLHCommit opposite: #parentCommits"
×
UNCOV
198

×
UNCOV
199
        <generated>
×
UNCOV
200
        ^ childCommits
×
UNCOV
201
]
×
202

203
{ #category : #accessing }
204
GLHCommit >> childCommits: anObject [
×
205

×
206
        <generated>
×
207
        childCommits value: anObject
×
208
]
×
209

210
{ #category : #accessing }
UNCOV
211
GLHCommit >> commitCreator [
×
UNCOV
212
        "Relation named: #commitCreator type: #GLHUser opposite: #commits"
×
UNCOV
213

×
UNCOV
214
        <generated>
×
UNCOV
215
        <container>
×
UNCOV
216
        ^ commitCreator
×
UNCOV
217
]
×
218

219
{ #category : #accessing }
UNCOV
220
GLHCommit >> commitCreator: anObject [
×
UNCOV
221

×
UNCOV
222
        <generated>
×
UNCOV
223
        commitCreator := anObject
×
UNCOV
224
]
×
225

226
{ #category : #navigation }
227
GLHCommit >> commitCreatorGroup [
×
228
        <generated>
×
229
        <navigation: 'CommitCreator'>
×
230
        ^ MooseSpecializedGroup with: self commitCreator
×
231
]
×
232

233
{ #category : #accessing }
234
GLHCommit >> committed_date [
×
235

×
236
        <FMProperty: #committed_date type: #Object>
×
237
        <generated>
×
238
        ^ committed_date
×
239
]
×
240

241
{ #category : #accessing }
242
GLHCommit >> committed_date: anObject [
×
243
        <generated>
×
244
        committed_date := anObject
×
245
]
×
246

247
{ #category : #accessing }
248
GLHCommit >> committer_email [
×
249

×
250
        <FMProperty: #committer_email type: #String>
×
251
        <generated>
×
252
        ^ committer_email
×
253
]
×
254

255
{ #category : #accessing }
256
GLHCommit >> committer_email: anObject [
×
257
        <generated>
×
258
        committer_email := anObject
×
259
]
×
260

261
{ #category : #accessing }
262
GLHCommit >> committer_name [
×
263

×
264
        <FMProperty: #committer_name type: #String>
×
265
        <generated>
×
266
        ^ committer_name
×
267
]
×
268

269
{ #category : #accessing }
270
GLHCommit >> committer_name: anObject [
×
271
        <generated>
×
272
        committer_name := anObject
×
273
]
×
274

275
{ #category : #accessing }
UNCOV
276
GLHCommit >> created_at [
×
UNCOV
277

×
UNCOV
278
        <FMProperty: #created_at type: #Object>
×
UNCOV
279
        <generated>
×
UNCOV
280
        ^ created_at
×
UNCOV
281
]
×
282

283
{ #category : #accessing }
UNCOV
284
GLHCommit >> created_at: anObject [
×
UNCOV
285
        <generated>
×
UNCOV
286
        created_at := anObject
×
UNCOV
287
]
×
288

289
{ #category : #accessing }
290
GLHCommit >> deletions [
×
291

×
292
        <FMProperty: #deletions type: #Number>
×
293
        <generated>
×
294
        <FMComment: 'The number of line that git consider deleted'>
×
295
        ^ deletions
×
296
]
×
297

298
{ #category : #accessing }
299
GLHCommit >> deletions: anObject [
1✔
300
        <generated>
1✔
301
        deletions := anObject
1✔
302
]
1✔
303

304
{ #category : #accessing }
305
GLHCommit >> diffs [
1✔
306
        "Relation named: #diffs type: #GLHDiff opposite: #commit"
1✔
307

1✔
308
        <generated>
1✔
309
        <derived>
1✔
310
        ^ diffs
1✔
311
]
1✔
312

313
{ #category : #accessing }
314
GLHCommit >> diffs: anObject [
×
315

×
316
        <generated>
×
317
        diffs value: anObject
×
318
]
×
319

320
{ #category : #navigation }
321
GLHCommit >> diffsGroup [
×
322
        <generated>
×
323
        <navigation: 'Diffs'>
×
324
        ^ MooseSpecializedGroup withAll: self diffs asSet
×
325
]
×
326

327
{ #category : #accessing }
328
GLHCommit >> id [
1✔
329

1✔
330
        <FMProperty: #id type: #String>
1✔
331
        <generated>
1✔
332
        ^ id
1✔
333
]
1✔
334

335
{ #category : #accessing }
336
GLHCommit >> id: anObject [
×
337
        <generated>
×
338
        id := anObject
×
339
]
×
340

341
{ #category : #accessing }
342
GLHCommit >> jobs [
×
343
        "Relation named: #jobs type: #GLHJob opposite: #commit"
×
344

×
345
        <generated>
×
346
        <derived>
×
347
        ^ jobs
×
348
]
×
349

350
{ #category : #accessing }
351
GLHCommit >> jobs: anObject [
×
352

×
353
        <generated>
×
354
        jobs value: anObject
×
355
]
×
356

357
{ #category : #navigation }
358
GLHCommit >> jobsGroup [
×
359
        <generated>
×
360
        <navigation: 'Jobs'>
×
361
        ^ MooseSpecializedGroup withAll: self jobs asSet
×
362
]
×
363

364
{ #category : #accessing }
365
GLHCommit >> message [
1✔
366

1✔
367
        <FMProperty: #message type: #String>
1✔
368
        <generated>
1✔
369
        ^ message
1✔
370
]
1✔
371

372
{ #category : #accessing }
373
GLHCommit >> message: anObject [
1✔
374
        <generated>
1✔
375
        message := anObject
1✔
376
]
1✔
377

378
{ #category : #accessing }
379
GLHCommit >> parentCommits [
×
380
        "Relation named: #parentCommits type: #GLHCommit opposite: #childCommits"
×
381

×
382
        <generated>
×
383
        <derived>
×
384
        ^ parentCommits
×
385
]
×
386

387
{ #category : #accessing }
388
GLHCommit >> parentCommits: anObject [
×
389

×
390
        <generated>
×
391
        parentCommits value: anObject
×
392
]
×
393

394
{ #category : #accessing }
395
GLHCommit >> parent_ids: anObject [
×
396
        <generated>
×
397
        parent_ids := anObject
×
398
]
×
399

400
{ #category : #accessing }
401
GLHCommit >> repository [
1✔
402
        "Relation named: #repository type: #GLHRepository opposite: #commits"
1✔
403

1✔
404
        <generated>
1✔
405
        <container>
1✔
406
        ^ repository
1✔
407
]
1✔
408

409
{ #category : #accessing }
UNCOV
410
GLHCommit >> repository: anObject [
×
UNCOV
411

×
UNCOV
412
        <generated>
×
UNCOV
413
        repository := anObject
×
UNCOV
414
]
×
415

416
{ #category : #navigation }
417
GLHCommit >> repositoryGroup [
×
418
        <generated>
×
419
        <navigation: 'Repository'>
×
420
        ^ MooseSpecializedGroup with: self repository
×
421
]
×
422

423
{ #category : #accessing }
424
GLHCommit >> short_id [
1✔
425

1✔
426
        <FMProperty: #short_id type: #String>
1✔
427
        <generated>
1✔
428
        ^ short_id
1✔
429
]
1✔
430

431
{ #category : #accessing }
UNCOV
432
GLHCommit >> short_id: anObject [
×
UNCOV
433
        <generated>
×
UNCOV
434
        short_id := anObject
×
UNCOV
435
]
×
436

437
{ #category : #accessing }
438
GLHCommit >> title [
×
439

×
440
        <FMProperty: #title type: #String>
×
441
        <generated>
×
442
        ^ title
×
443
]
×
444

445
{ #category : #accessing }
446
GLHCommit >> title: anObject [
×
447
        <generated>
×
448
        title := anObject
×
449
]
×
450

451
{ #category : #accessing }
452
GLHCommit >> web_url [
×
453

×
454
        <FMProperty: #web_url type: #String>
×
455
        <generated>
×
456
        ^ web_url
×
457
]
×
458

459
{ #category : #accessing }
460
GLHCommit >> web_url: anObject [
×
461
        <generated>
×
462
        web_url := anObject
×
463
]
×
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

© 2025 Coveralls, Inc