-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from moosetechnology/sanity-checks
Sanity checks
- Loading branch information
Showing
16 changed files
with
246 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Extension { #name : #FamixF77Access } | ||
|
||
{ #category : #'*EsopeImporter' } | ||
FamixF77Access >> famixImportSanityCheck [ | ||
|
||
self assert: variable isNotNil description: 'Access without variable'. | ||
self assert: accessor isNotNil description: 'Access without accessor' | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Extension { #name : #FamixF77Entity } | ||
|
||
{ #category : #'*EsopeImporter' } | ||
FamixF77Entity >> assert: aBlock description: aString [ | ||
"reimplement Object>>assert:description: because we want a resumable Failure" | ||
|
||
aBlock value == true ifFalse: [ | ||
Exception signal: aString ] | ||
] | ||
|
||
{ #category : #'*EsopeImporter' } | ||
FamixF77Entity >> famixImportSanityCheck [ | ||
"nothing special by default" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Extension { #name : #FamixF77Invocation } | ||
|
||
{ #category : #'*EsopeImporter' } | ||
FamixF77Invocation >> famixImportSanityCheck [ | ||
|
||
self assert: sender isNotNil description: 'Invocation without sender'. | ||
self assert: candidates isNotEmpty description: 'Invocation without candidates'. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Extension { #name : #FamixF77PUFunction } | ||
|
||
{ #category : #'*EsopeImporter' } | ||
FamixF77PUFunction >> famixImportSanityCheck [ | ||
|
||
super famixImportSanityCheck. | ||
|
||
self assert: declaredType isNotNil description: 'Function without declaredType'. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Extension { #name : #FamixF77Parameter } | ||
|
||
{ #category : #'*EsopeImporter' } | ||
FamixF77Parameter >> famixImportSanityCheck [ | ||
|
||
self assert: parentBehaviouralEntity isNotNil description: 'Parameter without parentBehaviouralEntity'. | ||
self assert: declaredType isNotNil description: 'Parameter without declaredType'. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Extension { #name : #FamixF77UnknownVariable } | ||
|
||
{ #category : #'*EsopeImporter' } | ||
FamixF77UnknownVariable >> famixImportSanityCheck [ | ||
|
||
self assert: incomingAccesses isNotEmpty description: 'UnknownVariable without incomingAccesses'. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Extension { #name : #FamixFortranAttribute } | ||
|
||
{ #category : #'*EsopeImporter' } | ||
FamixFortranAttribute >> famixImportSanityCheck [ | ||
|
||
self assert: parentType isNotNil description: 'Variable without parentType'. | ||
self assert: declaredType isNotNil description: 'Variable without declaredType'. | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Extension { #name : #FamixFortranEntity } | ||
|
||
{ #category : #'*EsopeImporter' } | ||
FamixFortranEntity >> famixImportSanityCheck [ | ||
"nothing special by default" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.