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

moosetechnology / GitProjectHealth / 12694000626

09 Jan 2025 04:16PM UTC coverage: 61.269% (+2.1%) from 59.199%
12694000626

Pull #114

github

web-flow
Merge a4ebe6c86 into ad6480d24
Pull Request #114: refactor: replace GLHApi and GLPHApi with Gitlab Pharo API

260 of 476 new or added lines in 15 files covered. (54.62%)

25 existing lines in 3 files now uncovered.

9528 of 15551 relevant lines covered (61.27%)

0.61 hits per line

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

88.57
/src/GitLabHealth-Model-Analysis/ProjectMetric.class.st
1
Class {
2
        #name : #ProjectMetric,
3
        #superclass : #Metric,
4
        #instVars : [
5
                'project',
6
                'projectCommits'
7
        ],
8
        #category : #'GitLabHealth-Model-Analysis'
9
}
10

11
{ #category : #loading }
12
ProjectMetric >> loadCommitsSince: since until: until [
1✔
13

1✔
14
        | cacheSymbol allCommits |
1✔
15
        glhImporter withCommitDiffs: false.
1✔
16

1✔
17
        cacheSymbol := self
1✔
18
                               cacheSymbolFor: GLHCommit
1✔
19
                               since: since
1✔
20
                               until: until.
1✔
21

1✔
22
        "download commits unless project cache is not empty"
1✔
23
        allCommits := project repository
1✔
24
                                      cacheAt: cacheSymbol
1✔
25
                                      ifAbsentPut: [
1✔
26
                                              | foundCommits |
1✔
27
                                              foundCommits := glhImporter
1✔
28
                                                                      importCommitsOfProject: project
1✔
29
                                                                      since: since
1✔
30
                                                                      until: until.
1✔
31
                                              foundCommits ].
1✔
32

1✔
33
        allCommits do: [ :commit | glhImporter importCreatorOfCommit: commit ].
1✔
34
        glhImporter chainsCommitsFrom: allCommits.
1✔
35
        glhImporter withCommitDiffs: true.
1✔
36

1✔
37
        ^ allCommits
1✔
38
]
1✔
39

40
{ #category : #accessing }
NEW
41
ProjectMetric >> project [
×
NEW
42

×
NEW
43
        ^ project
×
NEW
44
]
×
45

46
{ #category : #accessing }
47
ProjectMetric >> project: anObject [
1✔
48

1✔
49
        project := anObject
1✔
50
]
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