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

moosetechnology / Famix-UnitTest / 8690616954

15 Apr 2024 02:08PM UTC coverage: 36.931% (-3.2%) from 40.141%
8690616954

push

github

Gabriel-Darbord
Exporter: Fix test

18 of 18 new or added lines in 2 files covered. (100.0%)

247 existing lines in 10 files now uncovered.

503 of 1362 relevant lines covered (36.93%)

0.37 hits per line

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

53.68
/src/Famix-UnitTest-Entities/FamixUTMethod.class.st
1
"
2
Tests a specific behavior or feature of the system under test.
3

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

7
### Parents
8
| Relation | Origin | Opposite | Type | Comment |
9
|---|
10
| `case` | `FamixUTMethod` | `methods` | `FamixUTCase` | |
11

12
### Children
13
| Relation | Origin | Opposite | Type | Comment |
14
|---|
15
| `act` | `FamixUTMethod` | `method` | `FamixUTAct` | |
16
| `assertions` | `FamixUTMethod` | `method` | `FamixUTAssertion` | |
17

18
### Other
19
| Relation | Origin | Opposite | Type | Comment |
20
|---|
21
| `setUp` | `FamixUTMethod` | `method` | `FamixUTSetUp` | |
22
| `tearDown` | `FamixUTMethod` | `method` | `FamixUTTearDown` | |
23
| `testedMethod` | `FamixUTMethod` | `unitTests` | `FamixTMethod` | |
24

25

26
## Properties
27
======================
28

29
| Name | Type | Default value | Comment |
30
|---|
31
| `name` | `String` | nil | Basic name of the entity, not full reference.|
32

33
"
34
Class {
35
        #name : #FamixUTMethod,
36
        #superclass : #FamixUTEntity,
37
        #traits : 'FamixTNamedEntity',
38
        #classTraits : 'FamixTNamedEntity classTrait',
39
        #instVars : [
40
                '#case => FMOne type: #FamixUTCase opposite: #methods',
41
                '#assertions => FMMany type: #FamixUTAssertion opposite: #method',
42
                '#act => FMOne type: #FamixUTAct opposite: #method',
43
                '#setUp => FMOne type: #FamixUTSetUp opposite: #method',
44
                '#tearDown => FMOne type: #FamixUTTearDown opposite: #method'
45
        ],
46
        #category : #'Famix-UnitTest-Entities-Entities'
47
}
48

49
{ #category : #meta }
UNCOV
50
FamixUTMethod class >> annotation [
×
UNCOV
51

×
UNCOV
52
        <FMClass: #Method super: #FamixUTEntity>
×
UNCOV
53
        <package: #'Famix-UnitTest-Entities'>
×
UNCOV
54
        <generated>
×
UNCOV
55
        ^ self
×
UNCOV
56
]
×
57

58
{ #category : #accessing }
59
FamixUTMethod >> act [
1✔
60
        "Relation named: #act type: #FamixUTAct opposite: #method"
1✔
61

1✔
62
        <generated>
1✔
63
        ^ act
1✔
64
]
1✔
65

66
{ #category : #accessing }
67
FamixUTMethod >> act: anObject [
1✔
68

1✔
69
        <generated>
1✔
70
        act := anObject
1✔
71
]
1✔
72

73
{ #category : #navigation }
74
FamixUTMethod >> actGroup [
×
75
        <generated>
×
76
        <navigation: 'Act'>
×
77
        ^ MooseSpecializedGroup with: self act
×
UNCOV
78
]
×
79

80
{ #category : #adding }
81
FamixUTMethod >> addAssertion: anObject [
1✔
82
        <generated>
1✔
83
        ^ self assertions add: anObject
1✔
84
]
1✔
85

86
{ #category : #accessing }
87
FamixUTMethod >> assertions [
1✔
88
        "Relation named: #assertions type: #FamixUTAssertion opposite: #method"
1✔
89

1✔
90
        <generated>
1✔
91
        <derived>
1✔
92
        ^ assertions
1✔
93
]
1✔
94

95
{ #category : #accessing }
96
FamixUTMethod >> assertions: anObject [
×
97

×
98
        <generated>
×
99
        assertions value: anObject
×
100
]
×
101

102
{ #category : #navigation }
UNCOV
103
FamixUTMethod >> assertionsGroup [
×
UNCOV
104
        <generated>
×
UNCOV
105
        <navigation: 'Assertions'>
×
UNCOV
106
        ^ MooseSpecializedGroup withAll: self assertions asSet
×
UNCOV
107
]
×
108

109
{ #category : #accessing }
UNCOV
110
FamixUTMethod >> case [
×
111
        "Relation named: #case type: #FamixUTCase opposite: #methods"
×
112

×
113
        <generated>
×
114
        <container>
×
115
        ^ case
×
UNCOV
116
]
×
117

118
{ #category : #accessing }
UNCOV
119
FamixUTMethod >> case: anObject [
×
UNCOV
120

×
UNCOV
121
        <generated>
×
UNCOV
122
        case := anObject
×
UNCOV
123
]
×
124

125
{ #category : #navigation }
126
FamixUTMethod >> caseGroup [
×
127
        <generated>
×
128
        <navigation: 'Case'>
×
129
        ^ MooseSpecializedGroup with: self case
×
130
]
×
131

132
{ #category : #accessing }
133
FamixUTMethod >> setUp [
1✔
134
        "Relation named: #setUp type: #FamixUTSetUp opposite: #method"
1✔
135

1✔
136
        <generated>
1✔
137
        ^ setUp
1✔
138
]
1✔
139

140
{ #category : #accessing }
141
FamixUTMethod >> setUp: anObject [
1✔
142

1✔
143
        <generated>
1✔
144
        setUp := anObject
1✔
145
]
1✔
146

147
{ #category : #accessing }
148
FamixUTMethod >> tearDown [
1✔
149
        "Relation named: #tearDown type: #FamixUTTearDown opposite: #method"
1✔
150

1✔
151
        <generated>
1✔
152
        ^ tearDown
1✔
153
]
1✔
154

155
{ #category : #accessing }
UNCOV
156
FamixUTMethod >> tearDown: anObject [
×
UNCOV
157

×
UNCOV
158
        <generated>
×
UNCOV
159
        tearDown := anObject
×
UNCOV
160
]
×
161

162
{ #category : #accessing }
163
FamixUTMethod >> testedMethod [
1✔
164
        "Relation named: #testedMethod type: #FamixTMethod opposite: #unitTests"
1✔
165

1✔
166
        <generated>
1✔
167
        <FMProperty: #testedMethod type: #FamixTMethod opposite: #unitTests>
1✔
168
        ^ self attributeAt: #testedMethod ifAbsent: [ nil ]
1✔
169
]
1✔
170

171
{ #category : #accessing }
172
FamixUTMethod >> testedMethod: anObject [
1✔
173

1✔
174
        <generated>
1✔
175
        self attributeAt: #testedMethod put: (FMMultivalueLink on: self update: #unitTests from: self testedMethod to: anObject).
1✔
176
]
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

© 2026 Coveralls, Inc