-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more unit tests for linter tests
- Loading branch information
1 parent
6fdc136
commit dd85ef0
Showing
25 changed files
with
143 additions
and
2 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
.../SwaLint-Tests.package/SLSmallLintPlugInTest.class/instance/testTempsReadBeforeWritten.st
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 @@ | ||
testing | ||
testTempsReadBeforeWritten | ||
|
||
self | ||
test: #smallLintTempsReadBeforeWritten | ||
on: { SLTestTempsReadBeforeWritten } | ||
expectedResults: { 2 }. |
7 changes: 7 additions & 0 deletions
7
...ges/SwaLint-Tests.package/SLSmallLintPlugInTest.class/instance/testUnclassifiedMethods.st
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 @@ | ||
testing | ||
testUnclassifiedMethods | ||
|
||
self | ||
test: #smallLintUnclassifiedMethods | ||
on: { SLTestUnclassifiedMethods } | ||
expectedResults: { 2 }. |
7 changes: 7 additions & 0 deletions
7
...ges/SwaLint-Tests.package/SLSmallLintPlugInTest.class/instance/testUncommonMessageSend.st
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 @@ | ||
testing | ||
testUncommonMessageSend | ||
|
||
self | ||
test: #smallLintUncommonMessageSend | ||
on: { SLTestUncommonMessageSend } | ||
expectedResults: { 3 }. |
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
Empty file.
8 changes: 8 additions & 0 deletions
8
packages/SwaLint-Tests.package/SLTestTempsReadBeforeWritten.class/instance/doSomethingBad.st
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 @@ | ||
as yet unclassified | ||
doSomethingBad | ||
|
||
| a b c d e | | ||
a := 0. | ||
c := 1. | ||
d := 2. | ||
^ a + b + c + d + e |
6 changes: 6 additions & 0 deletions
6
...ages/SwaLint-Tests.package/SLTestTempsReadBeforeWritten.class/instance/doSomethingBad2.st
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 @@ | ||
as yet unclassified | ||
doSomethingBad2 | ||
|
||
| a b | | ||
a := 0. | ||
^ a + b |
7 changes: 7 additions & 0 deletions
7
...ackage/SLTestTempsReadBeforeWritten.class/instance/doSomethingWithoutAnnoyingTheLinter.st
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 @@ | ||
as yet unclassified | ||
doSomethingWithoutAnnoyingTheLinter | ||
|
||
| a b | | ||
a := 0. | ||
b := 1. | ||
^ a + b |
7 changes: 7 additions & 0 deletions
7
packages/SwaLint-Tests.package/SLTestTempsReadBeforeWritten.class/methodProperties.json
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 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"doSomethingBad" : "fm 5/24/2018 19:29", | ||
"doSomethingBad2" : "fm 5/24/2018 19:28", | ||
"doSomethingWithoutAnnoyingTheLinter" : "fm 5/24/2018 19:23" } } |
14 changes: 14 additions & 0 deletions
14
packages/SwaLint-Tests.package/SLTestTempsReadBeforeWritten.class/properties.json
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 @@ | ||
{ | ||
"category" : "SwaLint-Tests-Data", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "SLTestTempsReadBeforeWritten", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |
Empty file.
2 changes: 2 additions & 0 deletions
2
packages/SwaLint-Tests.package/SLTestUnclassifiedMethods.class/instance/classifiedMethod.st
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,2 @@ | ||
private | ||
classifiedMethod |
2 changes: 2 additions & 0 deletions
2
...ages/SwaLint-Tests.package/SLTestUnclassifiedMethods.class/instance/unclassifiedMethod.st
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,2 @@ | ||
as yet unclassified | ||
unclassifiedMethod |
2 changes: 2 additions & 0 deletions
2
...ges/SwaLint-Tests.package/SLTestUnclassifiedMethods.class/instance/unclassifiedMethod2.st
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,2 @@ | ||
as yet unclassified | ||
unclassifiedMethod2 |
7 changes: 7 additions & 0 deletions
7
packages/SwaLint-Tests.package/SLTestUnclassifiedMethods.class/methodProperties.json
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 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"classifiedMethod" : "fm 5/24/2018 20:04", | ||
"unclassifiedMethod" : "fm 5/24/2018 20:04", | ||
"unclassifiedMethod2" : "fm 5/24/2018 20:04" } } |
14 changes: 14 additions & 0 deletions
14
packages/SwaLint-Tests.package/SLTestUnclassifiedMethods.class/properties.json
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 @@ | ||
{ | ||
"category" : "SwaLint-Tests-Data", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "SLTestUnclassifiedMethods", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |
Empty file.
5 changes: 5 additions & 0 deletions
5
...es/SwaLint-Tests.package/SLTestUncommonMessageSend.class/instance/doCommonMessageSend1.st
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,5 @@ | ||
as yet unclassified | ||
doCommonMessageSend1 | ||
|
||
| tmp | | ||
tmp goodSelector. |
5 changes: 5 additions & 0 deletions
5
...es/SwaLint-Tests.package/SLTestUncommonMessageSend.class/instance/doCommonMessageSend2.st
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,5 @@ | ||
as yet unclassified | ||
doCommonMessageSend2 | ||
|
||
self goodSelector. | ||
self goodSelector. |
5 changes: 5 additions & 0 deletions
5
.../SwaLint-Tests.package/SLTestUncommonMessageSend.class/instance/doUncommonMessageSend1.st
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,5 @@ | ||
as yet unclassified | ||
doUncommonMessageSend1 | ||
|
||
"Besides super: self, thisContext, true, false, nil" | ||
1 super. |
5 changes: 5 additions & 0 deletions
5
.../SwaLint-Tests.package/SLTestUncommonMessageSend.class/instance/doUncommonMessageSend2.st
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,5 @@ | ||
as yet unclassified | ||
doUncommonMessageSend2 | ||
|
||
self goodSelector | ||
self goodSelector |
5 changes: 5 additions & 0 deletions
5
.../SwaLint-Tests.package/SLTestUncommonMessageSend.class/instance/doUncommonMessageSend3.st
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,5 @@ | ||
as yet unclassified | ||
doUncommonMessageSend3 | ||
|
||
| tmp | | ||
tmp BadSelector. |
9 changes: 9 additions & 0 deletions
9
packages/SwaLint-Tests.package/SLTestUncommonMessageSend.class/methodProperties.json
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 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"doCommonMessageSend1" : "fm 5/25/2018 08:51", | ||
"doCommonMessageSend2" : "fm 5/25/2018 08:50", | ||
"doUncommonMessageSend1" : "fm 5/25/2018 08:38", | ||
"doUncommonMessageSend2" : "fm 5/25/2018 08:48", | ||
"doUncommonMessageSend3" : "fm 5/25/2018 08:47" } } |
14 changes: 14 additions & 0 deletions
14
packages/SwaLint-Tests.package/SLTestUncommonMessageSend.class/properties.json
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 @@ | ||
{ | ||
"category" : "SwaLint-Tests-Data", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
], | ||
"name" : "SLTestUncommonMessageSend", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |