Skip to content

Commit dab9a83

Browse files
authored
Merge branch 'Pharo12' into master
2 parents 6f63b03 + cbb8c08 commit dab9a83

File tree

4 files changed

+139
-132
lines changed

4 files changed

+139
-132
lines changed

src/Sindarin-Tests/SindarinDebugSessionMock.class.st

+18-16
Original file line numberDiff line numberDiff line change
@@ -2,80 +2,82 @@
22
I mock sindarin debug sessions to control it finely during tests
33
"
44
Class {
5-
#name : #SindarinDebugSessionMock,
6-
#superclass : #Object,
5+
#name : 'SindarinDebugSessionMock',
6+
#superclass : 'Object',
77
#instVars : [
88
'isMessage',
99
'selector',
1010
'receiver'
1111
],
12-
#category : #'Sindarin-Tests-Mocks'
12+
#category : 'Sindarin-Tests-Mocks',
13+
#package : 'Sindarin-Tests',
14+
#tag : 'Mocks'
1315
}
1416

15-
{ #category : #accessing }
17+
{ #category : 'accessing' }
1618
SindarinDebugSessionMock >> context [
1719
^self
1820
]
1921

20-
{ #category : #accessing }
22+
{ #category : 'accessing' }
2123
SindarinDebugSessionMock >> debugSession [
2224
^self
2325
]
2426

25-
{ #category : #accessing }
27+
{ #category : 'accessing' }
2628
SindarinDebugSessionMock >> interruptedContext [
2729
^self
2830
]
2931

30-
{ #category : #accessing }
32+
{ #category : 'accessing' }
3133
SindarinDebugSessionMock >> isMessage [
3234
^isMessage ifNil:[false]
3335
]
3436

35-
{ #category : #accessing }
37+
{ #category : 'accessing' }
3638
SindarinDebugSessionMock >> isMessage: anObject [
3739

3840
isMessage := anObject
3941
]
4042

41-
{ #category : #accessing }
43+
{ #category : 'accessing' }
4244
SindarinDebugSessionMock >> method [
4345
^self
4446
]
4547

46-
{ #category : #accessing }
48+
{ #category : 'accessing' }
4749
SindarinDebugSessionMock >> pc [
4850
^self
4951
]
5052

51-
{ #category : #accessing }
53+
{ #category : 'accessing' }
5254
SindarinDebugSessionMock >> receiver [
5355
^receiver
5456
]
5557

56-
{ #category : #accessing }
58+
{ #category : 'accessing' }
5759
SindarinDebugSessionMock >> receiver: anObject [
5860

5961
receiver := anObject
6062
]
6163

62-
{ #category : #accessing }
64+
{ #category : 'accessing' }
6365
SindarinDebugSessionMock >> selector [
6466
^selector
6567
]
6668

67-
{ #category : #accessing }
69+
{ #category : 'accessing' }
6870
SindarinDebugSessionMock >> selector: anObject [
6971

7072
selector := anObject
7173
]
7274

73-
{ #category : #accessing }
75+
{ #category : 'accessing' }
7476
SindarinDebugSessionMock >> sourceNodeExecuted [
7577
^self
7678
]
7779

78-
{ #category : #accessing }
80+
{ #category : 'accessing' }
7981
SindarinDebugSessionMock >> sourceNodeForPC: pc [
8082
^self
8183
]

src/Sindarin-Tests/SindarinDebugSessionTest.class.st

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
Class {
2-
#name : #SindarinDebugSessionTest,
3-
#superclass : #TestCase,
2+
#name : 'SindarinDebugSessionTest',
3+
#superclass : 'TestCase',
44
#instVars : [
55
'debugSession',
66
'sindarinSession'
77
],
8-
#category : #'Sindarin-Tests-Base'
8+
#category : 'Sindarin-Tests-Base',
9+
#package : 'Sindarin-Tests',
10+
#tag : 'Base'
911
}
1012

11-
{ #category : #running }
13+
{ #category : 'running' }
1214
SindarinDebugSessionTest >> setUp [
1315
"Hooks that subclasses may override to define the fixture of test."
1416

@@ -17,21 +19,21 @@ SindarinDebugSessionTest >> setUp [
1719
sindarinSession := debugSession asSindarinDebugSession
1820
]
1921

20-
{ #category : #tests }
22+
{ #category : 'tests' }
2123
SindarinDebugSessionTest >> testDebugSessionAsSindarinDebugSession [
2224

2325
self assert: sindarinSession debugSession identicalTo: debugSession
2426
]
2527

26-
{ #category : #tests }
28+
{ #category : 'tests' }
2729
SindarinDebugSessionTest >> testSindarinSessionAsSindarinDebugSession [
2830

2931
self
3032
assert: sindarinSession asSindarinDebugSession
3133
identicalTo: sindarinSession
3234
]
3335

34-
{ #category : #tests }
36+
{ #category : 'tests' }
3537
SindarinDebugSessionTest >> testSindarinSessionInstantiation [
3638

3739
| sessionName process |

0 commit comments

Comments
 (0)