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

moosetechnology / GitProjectHealth / 13920260246

18 Mar 2025 09:53AM UTC coverage: 68.129% (+0.08%) from 68.052%
13920260246

Pull #160

github

web-flow
Merge c4ea9ae62 into a89382bdd
Pull Request #160: remove the necessity to manually add metric to the exporter.

81 of 114 new or added lines in 8 files covered. (71.05%)

1 existing line in 1 file now uncovered.

12612 of 18512 relevant lines covered (68.13%)

0.68 hits per line

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

85.71
/src/GitLabHealth-Model-Analysis/MergedMergeRequestProjectMetric.class.st
1
Class {
2
        #name : #MergedMergeRequestProjectMetric,
3
        #superclass : #ProjectMetric,
4
        #category : #'GitLabHealth-Model-Analysis'
5
}
6

7
{ #category : #'as yet unclassified' }
8
MergedMergeRequestProjectMetric >> calculate [
1✔
9

1✔
10
        | groupedByDate |
1✔
11
        projectMergeRequests ifNil: [ self load ].
1✔
12

1✔
13
        groupedByDate := self setupGroupedDate.
1✔
14

1✔
15
        projectMergeRequests
1✔
16
                select: [ :mr | mr state = #merged ]
1✔
17
                thenDo: [ :c |
1✔
18
                        | dateOver |
1✔
19
                        dateOver := self transformDate: c merged_at to: over.
1✔
20
                        groupedByDate at: dateOver printString ifPresent: [ :v | v add: c ] ].
1✔
21

1✔
22
        groupedByDate := groupedByDate collect: [ :group | group size ].
1✔
23

1✔
24
        ^ groupedByDate average asFloat
1✔
25
]
1✔
26

27
{ #category : #'as yet unclassified' }
NEW
28
MergedMergeRequestProjectMetric >> description [
×
NEW
29

×
NEW
30
        ^ 'Merged Merge Request (avg)'
×
NEW
31
]
×
32

33
{ #category : #'as yet unclassified' }
34
MergedMergeRequestProjectMetric >> load [
1✔
35

1✔
36
        projectMergeRequests := self
1✔
37
                                  loadMergeRequestsSince:   (period at: #since)
1✔
38
                                  until: (period at: #until)
1✔
39
]
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

© 2025 Coveralls, Inc