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

moosetechnology / GitProjectHealth / 11496923732

24 Oct 2024 09:54AM UTC coverage: 58.906% (+0.6%) from 58.319%
11496923732

Pull #93

github

web-flow
Merge c13759777 into fe675289f
Pull Request #93: Revert "Develop"

810 of 1504 new or added lines in 51 files covered. (53.86%)

31 existing lines in 4 files now uncovered.

8903 of 15114 relevant lines covered (58.91%)

0.59 hits per line

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

29.59
/src/GitLabHealth-Model/GLHDiff.class.st
1
"
2
The diff of a commit
3

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

7
### Parents
8
| Relation | Origin | Opposite | Type | Comment |
9
|---|
10
| `commit` | `GLHDiff` | `diffs` | `GLHCommit` | |
11

12

13
## Properties
14
======================
15

16
| Name | Type | Default value | Comment |
17
|---|
18
| `deleted_file` | `Boolean` | false | Is the file of the diff has been removed|
19
| `diffString` | `String` | nil | The string presenting the diff. It should follow the [Detailed-Unified](https://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html) format|
20
| `name` | `String` | nil | Basic name of the entity, not full reference.|
21
| `new_file` | `Boolean` | false | Is the file of the diff is a new file|
22
| `new_path` | `String` | nil | The path to the file in the resulted repository commitish|
23
| `old_path` | `String` | nil | The path to the file in the origin repository commitish|
24
| `renamed_file` | `Boolean` | false | Is the file of the diff has been renamed (see old_path/new_path) file|
25

26
"
27
Class {
28
        #name : #GLHDiff,
29
        #superclass : #GLHEntity,
30
        #traits : 'FamixTNamedEntity',
31
        #classTraits : 'FamixTNamedEntity classTrait',
32
        #instVars : [
33
                '#commit => FMOne type: #GLHCommit opposite: #diffs',
34
                '#deleted_file => FMProperty defaultValue: false',
35
                '#diffString => FMProperty',
36
                '#new_file => FMProperty defaultValue: false',
37
                '#new_path => FMProperty',
38
                '#old_path => FMProperty',
39
                '#renamed_file => FMProperty defaultValue: false'
40
        ],
41
        #category : #'GitLabHealth-Model-Entities'
42
}
43

44
{ #category : #meta }
45
GLHDiff class >> annotation [
×
46

×
47
        <FMClass: #Diff super: #GLHEntity>
×
48
        <package: #'GitLabHealth-Model'>
×
49
        <generated>
×
50
        ^ self
×
51
]
×
52

53
{ #category : #accessing }
54
GLHDiff >> commit [
1✔
55
        "Relation named: #commit type: #GLHCommit opposite: #diffs"
1✔
56

1✔
57
        <generated>
1✔
58
        <container>
1✔
59
        ^ commit
1✔
60
]
1✔
61

62
{ #category : #accessing }
63
GLHDiff >> commit: anObject [
×
64

×
65
        <generated>
×
66
        commit := anObject
×
67
]
×
68

69
{ #category : #navigation }
70
GLHDiff >> commitGroup [
×
71
        <generated>
×
72
        <navigation: 'Commit'>
×
73
        ^ MooseSpecializedGroup with: self commit
×
74
]
×
75

76
{ #category : #accessing }
77
GLHDiff >> deleted_file [
×
78

×
79
        <FMProperty: #deleted_file type: #Boolean defaultValue: false>
×
80
        <generated>
×
81
        <FMComment: 'Is the file of the diff has been removed'>
×
82
        ^ deleted_file ifNil: [ deleted_file := false ]
×
83
]
×
84

85
{ #category : #accessing }
86
GLHDiff >> deleted_file: anObject [
×
87
        <generated>
×
88
        deleted_file := anObject
×
89
]
×
90

91
{ #category : #accessing }
92
GLHDiff >> diffString [
1✔
93

1✔
94
        <FMProperty: #diffString type: #String>
1✔
95
        <generated>
1✔
96
        <FMComment: 'The string presenting the diff. It should follow the [Detailed-Unified](https://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html) format'>
1✔
97
        ^ diffString
1✔
98
]
1✔
99

100
{ #category : #accessing }
101
GLHDiff >> diffString: anObject [
1✔
102
        <generated>
1✔
103
        diffString := anObject
1✔
104
]
1✔
105

106
{ #category : #'as yet unclassified' }
107
GLHDiff >> inspectionGLHDiff [
×
108

×
109
        <inspectorPresentationOrder: 3 title: 'Files Impacted'>
×
110
        | canvas |
×
111
        canvas := RSCommitDiff canvasFor: self.
×
112

×
113
        ^ canvas asPresenter
×
114
]
×
115

116
{ #category : #accessing }
117
GLHDiff >> new_file [
×
118

×
119
        <FMProperty: #new_file type: #Boolean defaultValue: false>
×
120
        <generated>
×
121
        <FMComment: 'Is the file of the diff is a new file'>
×
122
        ^ new_file ifNil: [ new_file := false ]
×
123
]
×
124

125
{ #category : #accessing }
126
GLHDiff >> new_file: anObject [
×
127
        <generated>
×
128
        new_file := anObject
×
129
]
×
130

131
{ #category : #accessing }
132
GLHDiff >> new_path [
1✔
133

1✔
134
        <FMProperty: #new_path type: #String>
1✔
135
        <generated>
1✔
136
        <FMComment: 'The path to the file in the resulted repository commitish'>
1✔
137
        ^ new_path
1✔
138
]
1✔
139

140
{ #category : #accessing }
141
GLHDiff >> new_path: anObject [
1✔
142
        <generated>
1✔
143
        new_path := anObject
1✔
144
]
1✔
145

146
{ #category : #accessing }
147
GLHDiff >> old_path [
×
148

×
149
        <FMProperty: #old_path type: #String>
×
150
        <generated>
×
151
        <FMComment: 'The path to the file in the origin repository commitish'>
×
152
        ^ old_path
×
153
]
×
154

155
{ #category : #accessing }
UNCOV
156
GLHDiff >> old_path: anObject [
×
UNCOV
157
        <generated>
×
UNCOV
158
        old_path := anObject
×
UNCOV
159
]
×
160

161
{ #category : #accessing }
162
GLHDiff >> renamed_file [
×
163

×
164
        <FMProperty: #renamed_file type: #Boolean defaultValue: false>
×
165
        <generated>
×
166
        <FMComment: 'Is the file of the diff has been renamed (see old_path/new_path) file'>
×
167
        ^ renamed_file ifNil: [ renamed_file := false ]
×
168
]
×
169

170
{ #category : #accessing }
171
GLHDiff >> renamed_file: anObject [
×
172
        <generated>
×
173
        renamed_file := anObject
×
174
]
×
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

© 2026 Coveralls, Inc