@@ -467,48 +467,6 @@ FamixEsopeResolverTest >> testResolveAccessesForAPointerDotAttribute [
467
467
self assert: access2 accessor equals: main
468
468
]
469
469
470
- { #category : ' test - resolveAccess' }
471
- FamixEsopeResolverTest >> testResolveAccessesForAPointerDotAttributeWithoutSegment [
472
-
473
- | main access access2 varP typePoint |
474
- "
475
- subroutine demo
476
- pointeur p.point
477
- p.x
478
- end
479
- "
480
- typePoint := self newEntity: FamixEsopeSegment named: ' point' .
481
-
482
- varP := self newEntity: FamixF77Variable named: ' p' .
483
- varP declaredType: typePoint.
484
-
485
- access := self newEntity: FamixF77Access .
486
- access attributeAt: #entity put: (self defaultIASTVarAccess: ' p' ).
487
-
488
- access2 := self newEntity: FamixF77Access .
489
- access2 attributeAt: #entity put: (self defaultIASTVarAccess: ' x' ).
490
- access2 attributeAt: #parentAccess put: access.
491
-
492
- main := (self defaultMain: ' main' )
493
- addType: typePoint;
494
- addLocalVariable: varP;
495
- accesses: {
496
- access.
497
- access2 };
498
- yourself .
499
-
500
- self assert: main localVariables size equals: 1 .
501
-
502
- resolver resolveAccesses.
503
-
504
- self assert: main accesses size equals: 2 .
505
-
506
- self assert: access variable equals: varP.
507
-
508
- self assert: access2 variable class equals: FamixFortranAttribute .
509
- self assert: access2 variable name equals: ' x'
510
- ]
511
-
512
470
{ #category : ' test - resolveAccess' }
513
471
FamixEsopeResolverTest >> testResolveAccessesForAPointerVariableDeclared [
514
472
@@ -1392,8 +1350,6 @@ FamixEsopeResolverTest >> testResolvePointeurWithStubSegmentAccessingField [
1392
1350
end
1393
1351
"
1394
1352
1395
- self flag: ' #FIXME: after this tests we must have a stub segment and we need to add a x attribute to this segment?' .
1396
-
1397
1353
varP := self newEntity: FamixF77Variable named: ' p' .
1398
1354
varP segment: ' point' .
1399
1355
varP isEsope: true .
@@ -1417,10 +1373,9 @@ FamixEsopeResolverTest >> testResolvePointeurWithStubSegmentAccessingField [
1417
1373
self assert: main accesses size equals: 2 .
1418
1374
1419
1375
self assert: access variable equals: varP.
1420
- self assert: access accessor equals: main.
1421
1376
1422
- self assert: access2 variable isNil .
1423
- self assert: access2 accessor equals: main
1377
+ self assert: access2 variable class equals: FamixFortranAttribute .
1378
+ self assert: access2 variable name equals: ' x '
1424
1379
]
1425
1380
1426
1381
{ #category : ' tests' }
0 commit comments