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

moosetechnology / GitProjectHealth / 15753819552

19 Jun 2025 08:55AM UTC coverage: 74.908% (+0.5%) from 74.453%
15753819552

Pull #209

github

web-flow
Merge pull request #210 from moosetechnology/more-test-notes

add testCalculateMergedMergeRequestNoteBeforePeriod
Pull Request #209: Update with correct average for notes

674 of 1095 new or added lines in 10 files covered. (61.55%)

52 existing lines in 2 files now uncovered.

17560 of 23442 relevant lines covered (74.91%)

0.75 hits per line

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

0.0
/src/GitLabHealth-Model-Visualization/GLHCommitHiedraVisualization.class.st
1
Class {
2
        #name : #GLHCommitHiedraVisualization,
3
        #superclass : #SpPresenter,
4
        #instVars : [
5
                'groupCommitBlock',
6
                'hiedraColumnController',
7
                'ancestorIds'
8
        ],
9
        #category : #'GitLabHealth-Model-Visualization'
10
}
11

12
{ #category : #'instance creation' }
NEW
13
GLHCommitHiedraVisualization >> forCommits: commits [
×
NEW
14

×
NEW
15
        | table |
×
NEW
16
        table := self newTable.
×
NEW
17
        table items: commits.
×
NEW
18
        self initializeHiedraColumnForCommits: commits.
×
NEW
19
        table
×
NEW
20
                addColumn: (SpImageTableColumn evaluated: [ :item |
×
NEW
21
                                         hiedraColumnController cellMorphAtValue: item ]);
×
NEW
22
                addColumn: (SpStringTableColumn evaluated: [ :item | item message ]);
×
NEW
23
                addColumn: (SpStringTableColumn evaluated: [:commit | String streamContents:[:str |  commit committed_date asDate printOn: str format: #(1 2 3 $  2 2) ] ]).
×
NEW
24
        hiedraColumnController ruler:
×
NEW
25
                (HiRulerBuilder newRulerValues: commits linksBlock: [ :aCommit |
×
NEW
26
                         (aCommit parentCommits collect: #id) collect: [ :id |
×
NEW
27
                                 commits detect: [ :each | each id = id ] ] ]).
×
NEW
28
        hiedraColumnController reset.
×
NEW
29
        "After #reset, we know the desired width for the column."
×
NEW
30
        table columns first width: hiedraColumnController rulerWidth.
×
NEW
31
        table columns last width: 75.
×
NEW
32
        ^ table
×
NEW
33
]
×
34

35
{ #category : #initialization }
NEW
36
GLHCommitHiedraVisualization >> initialize [
×
NEW
37

×
NEW
38
        super initialize.
×
NEW
39
]
×
40

41
{ #category : #'as yet unclassified' }
NEW
42
GLHCommitHiedraVisualization >> initializeHiedraColumnForCommits: commits [
×
NEW
43

×
NEW
44
        hiedraColumnController := HiColumnController new.
×
NEW
45
        hiedraColumnController renderer
×
NEW
46
                linkWidth: 3.5;
×
NEW
47
                nodeRadius: 1.5;
×
NEW
48
                nodeBorderWidth: 3.0;
×
NEW
49
                arrowSize: 0;
×
NEW
50
                nodeConnectionOffset: 3;
×
NEW
51
                cellWidth: 8";
×
NEW
52
                useUniformColorStrategy".
×
NEW
53
        "Adjust the ruler rendering settings with table's row height."
×
NEW
54
        hiedraColumnController renderer rowHeight:
×
NEW
55
                FTTableMorph defaultRowHeight floor
×
NEW
56
]
×
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