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

moosetechnology / GitProjectHealth / 11741058616

08 Nov 2024 11:12AM UTC coverage: 59.174% (-0.6%) from 59.724%
11741058616

push

github

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

prepare v1.1.1

645 of 1284 new or added lines in 56 files covered. (50.23%)

28 existing lines in 3 files now uncovered.

9582 of 16193 relevant lines covered (59.17%)

0.59 hits per line

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

51.16
/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
| `commitedMergeRequest` | `GLHCommit` | `mergedCommit` | `GLHMergeRequest` | |
25
| `commitedMergeRequest` | `GLHCommit` | `mergeRequestCommit` | `GLHMergeRequest` | |
26
| `parentCommits` | `GLHCommit` | `childCommits` | `GLHCommit` | |
27
| `squashedMergeRequest` | `GLHCommit` | `squashCommit` | `GLHMergeRequest` | |
28

29

30
## Properties
31
======================
32

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

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

87
{ #category : #meta }
88
GLHCommit class >> annotation [
×
89

×
90
        <FMClass: #Commit super: #GLHEntity>
×
91
        <package: #'GitLabHealth-Model'>
×
92
        <generated>
×
93
        ^ self
×
94
]
×
95

96
{ #category : #adding }
97
GLHCommit >> addChildCommit: anObject [
×
98
        <generated>
×
99
        ^ self childCommits add: anObject
×
100
]
×
101

102
{ #category : #adding }
103
GLHCommit >> addDiff: anObject [
1✔
104
        <generated>
1✔
105
        ^ self diffs add: anObject
1✔
106
]
1✔
107

108
{ #category : #adding }
109
GLHCommit >> addJob: anObject [
×
110
        <generated>
×
111
        ^ self jobs add: anObject
×
112
]
×
113

114
{ #category : #adding }
115
GLHCommit >> addParentCommit: anObject [
×
116
        <generated>
×
117
        ^ self parentCommits add: anObject
×
118
]
×
119

120
{ #category : #accessing }
121
GLHCommit >> additions [
1✔
122

1✔
123
        <FMProperty: #additions type: #Number>
1✔
124
        <generated>
1✔
125
        <FMComment: 'The number of line that git consider added'>
1✔
126
        ^ additions
1✔
127
]
1✔
128

129
{ #category : #accessing }
130
GLHCommit >> additions: anObject [
1✔
131
        <generated>
1✔
132
        additions := anObject
1✔
133
]
1✔
134

135
{ #category : #accessing }
136
GLHCommit >> author_email [
×
137

×
138
        <FMProperty: #author_email type: #String>
×
139
        <generated>
×
140
        ^ author_email
×
141
]
×
142

143
{ #category : #accessing }
144
GLHCommit >> author_email: anObject [
1✔
145
        <generated>
1✔
146
        author_email := anObject
1✔
147
]
1✔
148

149
{ #category : #accessing }
150
GLHCommit >> author_name [
1✔
151

1✔
152
        <FMProperty: #author_name type: #String>
1✔
153
        <generated>
1✔
154
        ^ author_name
1✔
155
]
1✔
156

157
{ #category : #accessing }
158
GLHCommit >> author_name: anObject [
1✔
159
        <generated>
1✔
160
        author_name := anObject
1✔
161
]
1✔
162

163
{ #category : #accessing }
164
GLHCommit >> authored_date [
1✔
165

1✔
166
        <FMProperty: #authored_date type: #Object>
1✔
167
        <generated>
1✔
168
        ^ authored_date
1✔
169
]
1✔
170

171
{ #category : #accessing }
172
GLHCommit >> authored_date: anObject [
1✔
173
        <generated>
1✔
174
        authored_date := anObject
1✔
175
]
1✔
176

177
{ #category : #accessing }
178
GLHCommit >> branch [
×
179
        "Relation named: #branch type: #GLHBranch opposite: #commits"
×
180

×
181
        <generated>
×
182
        <container>
×
183
        ^ branch
×
184
]
×
185

186
{ #category : #accessing }
187
GLHCommit >> branch: anObject [
×
188

×
189
        <generated>
×
190
        branch := anObject
×
191
]
×
192

193
{ #category : #navigation }
194
GLHCommit >> branchGroup [
×
195
        <generated>
×
196
        <navigation: 'Branch'>
×
197
        ^ MooseSpecializedGroup with: self branch
×
198
]
×
199

200
{ #category : #accessing }
201
GLHCommit >> childCommits [
1✔
202
        "Relation named: #childCommits type: #GLHCommit opposite: #parentCommits"
1✔
203

1✔
204
        <generated>
1✔
205
        ^ childCommits
1✔
206
]
1✔
207

208
{ #category : #accessing }
209
GLHCommit >> childCommits: anObject [
×
210

×
211
        <generated>
×
212
        childCommits value: anObject
×
213
]
×
214

215
{ #category : #accessing }
216
GLHCommit >> commitCreator [
1✔
217
        "Relation named: #commitCreator type: #GLHUser opposite: #commits"
1✔
218

1✔
219
        <generated>
1✔
220
        <container>
1✔
221
        ^ commitCreator
1✔
222
]
1✔
223

224
{ #category : #accessing }
225
GLHCommit >> commitCreator: anObject [
1✔
226

1✔
227
        <generated>
1✔
228
        commitCreator := anObject
1✔
229
]
1✔
230

231
{ #category : #navigation }
232
GLHCommit >> commitCreatorGroup [
×
233
        <generated>
×
234
        <navigation: 'CommitCreator'>
×
235
        ^ MooseSpecializedGroup with: self commitCreator
×
236
]
×
237

238
{ #category : #accessing }
NEW
239
GLHCommit >> commitedMergeRequest [
×
NEW
240
        "Relation named: #commitedMergeRequest type: #GLHMergeRequest opposite: #mergedCommit"
×
NEW
241

×
NEW
242
        <generated>
×
NEW
243
        <derived>
×
NEW
244
        ^ commitedMergeRequest
×
NEW
245
]
×
246

247
{ #category : #accessing }
NEW
248
GLHCommit >> commitedMergeRequest: anObject [
×
NEW
249

×
NEW
250
        <generated>
×
NEW
251
        commitedMergeRequest := anObject
×
NEW
252
]
×
253

254
{ #category : #accessing }
255
GLHCommit >> committed_date [
1✔
256

1✔
257
        <FMProperty: #committed_date type: #Object>
1✔
258
        <generated>
1✔
259
        ^ committed_date
1✔
260
]
1✔
261

262
{ #category : #accessing }
263
GLHCommit >> committed_date: anObject [
1✔
264
        <generated>
1✔
265
        committed_date := anObject
1✔
266
]
1✔
267

268
{ #category : #accessing }
269
GLHCommit >> committer_email [
×
270

×
271
        <FMProperty: #committer_email type: #String>
×
272
        <generated>
×
273
        ^ committer_email
×
274
]
×
275

276
{ #category : #accessing }
277
GLHCommit >> committer_email: anObject [
1✔
278
        <generated>
1✔
279
        committer_email := anObject
1✔
280
]
1✔
281

282
{ #category : #accessing }
283
GLHCommit >> committer_name [
×
284

×
285
        <FMProperty: #committer_name type: #String>
×
286
        <generated>
×
287
        ^ committer_name
×
288
]
×
289

290
{ #category : #accessing }
291
GLHCommit >> committer_name: anObject [
1✔
292
        <generated>
1✔
293
        committer_name := anObject
1✔
294
]
1✔
295

296
{ #category : #accessing }
297
GLHCommit >> created_at [
1✔
298

1✔
299
        <FMProperty: #created_at type: #Object>
1✔
300
        <generated>
1✔
301
        ^ created_at
1✔
302
]
1✔
303

304
{ #category : #accessing }
305
GLHCommit >> created_at: anObject [
1✔
306
        <generated>
1✔
307
        created_at := anObject
1✔
308
]
1✔
309

310
{ #category : #accessing }
311
GLHCommit >> deletions [
1✔
312

1✔
313
        <FMProperty: #deletions type: #Number>
1✔
314
        <generated>
1✔
315
        <FMComment: 'The number of line that git consider deleted'>
1✔
316
        ^ deletions
1✔
317
]
1✔
318

319
{ #category : #accessing }
320
GLHCommit >> deletions: anObject [
1✔
321
        <generated>
1✔
322
        deletions := anObject
1✔
323
]
1✔
324

325
{ #category : #accessing }
326
GLHCommit >> diffs [
1✔
327
        "Relation named: #diffs type: #GLHDiff opposite: #commit"
1✔
328

1✔
329
        <generated>
1✔
330
        <derived>
1✔
331
        ^ diffs
1✔
332
]
1✔
333

334
{ #category : #accessing }
335
GLHCommit >> diffs: anObject [
1✔
336

1✔
337
        <generated>
1✔
338
        diffs value: anObject
1✔
339
]
1✔
340

341
{ #category : #navigation }
342
GLHCommit >> diffsGroup [
×
343
        <generated>
×
344
        <navigation: 'Diffs'>
×
345
        ^ MooseSpecializedGroup withAll: self diffs asSet
×
346
]
×
347

348
{ #category : #accessing }
349
GLHCommit >> id [
1✔
350

1✔
351
        <FMProperty: #id type: #String>
1✔
352
        <generated>
1✔
353
        ^ id
1✔
354
]
1✔
355

356
{ #category : #accessing }
357
GLHCommit >> id: anObject [
1✔
358
        <generated>
1✔
359
        id := anObject
1✔
360
]
1✔
361

362
{ #category : #accessing }
363
GLHCommit >> jobs [
×
364
        "Relation named: #jobs type: #GLHJob opposite: #commit"
×
365

×
366
        <generated>
×
367
        <derived>
×
368
        ^ jobs
×
369
]
×
370

371
{ #category : #accessing }
372
GLHCommit >> jobs: anObject [
×
373

×
374
        <generated>
×
375
        jobs value: anObject
×
376
]
×
377

378
{ #category : #navigation }
379
GLHCommit >> jobsGroup [
×
380
        <generated>
×
381
        <navigation: 'Jobs'>
×
382
        ^ MooseSpecializedGroup withAll: self jobs asSet
×
383
]
×
384

385
{ #category : #accessing }
386
GLHCommit >> message [
1✔
387

1✔
388
        <FMProperty: #message type: #String>
1✔
389
        <generated>
1✔
390
        ^ message
1✔
391
]
1✔
392

393
{ #category : #accessing }
394
GLHCommit >> message: anObject [
1✔
395
        <generated>
1✔
396
        message := anObject
1✔
397
]
1✔
398

399
{ #category : #accessing }
400
GLHCommit >> parentCommits [
×
401
        "Relation named: #parentCommits type: #GLHCommit opposite: #childCommits"
×
402

×
403
        <generated>
×
404
        <derived>
×
405
        ^ parentCommits
×
406
]
×
407

408
{ #category : #accessing }
409
GLHCommit >> parentCommits: anObject [
×
410

×
411
        <generated>
×
412
        parentCommits value: anObject
×
413
]
×
414

415
{ #category : #accessing }
416
GLHCommit >> parent_ids: anObject [
1✔
417
        <generated>
1✔
418
        parent_ids := anObject
1✔
419
]
1✔
420

421
{ #category : #accessing }
422
GLHCommit >> repository [
1✔
423
        "Relation named: #repository type: #GLHRepository opposite: #commits"
1✔
424

1✔
425
        <generated>
1✔
426
        <container>
1✔
427
        ^ repository
1✔
428
]
1✔
429

430
{ #category : #accessing }
431
GLHCommit >> repository: anObject [
1✔
432

1✔
433
        <generated>
1✔
434
        repository := anObject
1✔
435
]
1✔
436

437
{ #category : #navigation }
438
GLHCommit >> repositoryGroup [
×
439
        <generated>
×
440
        <navigation: 'Repository'>
×
441
        ^ MooseSpecializedGroup with: self repository
×
442
]
×
443

444
{ #category : #accessing }
445
GLHCommit >> short_id [
1✔
446

1✔
447
        <FMProperty: #short_id type: #String>
1✔
448
        <generated>
1✔
449
        ^ short_id
1✔
450
]
1✔
451

452
{ #category : #accessing }
453
GLHCommit >> short_id: anObject [
1✔
454
        <generated>
1✔
455
        short_id := anObject
1✔
456
]
1✔
457

458
{ #category : #accessing }
NEW
459
GLHCommit >> squashedMergeRequest [
×
NEW
460
        "Relation named: #squashedMergeRequest type: #GLHMergeRequest opposite: #squashCommit"
×
NEW
461

×
NEW
462
        <generated>
×
NEW
463
        <derived>
×
NEW
464
        ^ squashedMergeRequest
×
NEW
465
]
×
466

467
{ #category : #accessing }
NEW
468
GLHCommit >> squashedMergeRequest: anObject [
×
NEW
469

×
NEW
470
        <generated>
×
NEW
471
        squashedMergeRequest := anObject
×
NEW
472
]
×
473

474
{ #category : #accessing }
475
GLHCommit >> title [
×
476

×
477
        <FMProperty: #title type: #String>
×
478
        <generated>
×
479
        ^ title
×
480
]
×
481

482
{ #category : #accessing }
483
GLHCommit >> title: anObject [
×
484
        <generated>
×
485
        title := anObject
×
486
]
×
487

488
{ #category : #accessing }
489
GLHCommit >> web_url [
×
490

×
491
        <FMProperty: #web_url type: #String>
×
492
        <generated>
×
493
        ^ web_url
×
494
]
×
495

496
{ #category : #accessing }
497
GLHCommit >> web_url: anObject [
×
498
        <generated>
×
499
        web_url := anObject
×
500
]
×
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