[FIR] Tests. Add orthogonal edge routing for cfg dumps
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
digraph binaryOperations_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph test_1 {
|
||||
0 [shape=box label="Enter function test_1"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph booleanOperatorsWithConsts_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph test_1 {
|
||||
0 [shape=box label="Enter function test_1"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph complex_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph fetchPluginReleaseDate {
|
||||
0 [shape=box label="Enter function fetchPluginReleaseDate"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph initBlock_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph <init> {
|
||||
0 [shape=box label="Enter function <init>"];
|
||||
1 [shape=box label="Exit function <init>"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph jumps_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph test_1 {
|
||||
0 [shape=box label="Enter function test_1"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph lambdas_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph run {
|
||||
0 [shape=box label="Enter function run"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph loops_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph testWhile {
|
||||
0 [shape=box label="Enter function testWhile"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph propertiesAndInitBlocks_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph run {
|
||||
0 [shape=box label="Enter function run"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph simple_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph foo {
|
||||
0 [shape=box label="Enter function foo"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph tryCatch_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph test_1 {
|
||||
0 [shape=box label="Enter function test_1"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph when_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph test_1 {
|
||||
0 [shape=box label="Enter function test_1"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph booleanOperators_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph foo {
|
||||
0 [shape=box label="Enter function foo"];
|
||||
1 [shape=box label="Exit function foo"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph boundSmartcasts_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph foo {
|
||||
0 [shape=box label="Enter function foo"];
|
||||
1 [shape=box label="Exit function foo"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph casts_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph test_1 {
|
||||
0 [shape=box label="Enter function test_1"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph elvis_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph foo {
|
||||
0 [shape=box label="Enter function foo"];
|
||||
1 [shape=box label="Exit function foo"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph equalsAndIdentity_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph foo {
|
||||
0 [shape=box label="Enter function foo"];
|
||||
1 [shape=box label="Exit function foo"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph equalsToBoolean_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph foo {
|
||||
0 [shape=box label="Enter function foo"];
|
||||
1 [shape=box label="Exit function foo"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph inPlaceLambdas_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph foo {
|
||||
0 [shape=box label="Enter function foo"];
|
||||
1 [shape=box label="Exit function foo"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph nullability_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph foo {
|
||||
0 [shape=box label="Enter function foo"];
|
||||
1 [shape=box label="Exit function foo"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph returns_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph test_0 {
|
||||
0 [shape=box label="Enter function test_0"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph simpleIf_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph test_1 {
|
||||
0 [shape=box label="Enter function test_1"];
|
||||
1 [shape=box label="Enter block"];
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
digraph when_kt {
|
||||
graph [splines=ortho]
|
||||
|
||||
subgraph foo {
|
||||
0 [shape=box label="Enter function foo"];
|
||||
1 [shape=box label="Exit function foo"];
|
||||
|
||||
@@ -60,6 +60,8 @@ abstract class AbstractFirCfgBuildingTest : AbstractFirResolveTestCase() {
|
||||
|
||||
override fun visitFile(file: FirFile) {
|
||||
dotBuilder.appendln("digraph ${file.name.replace(".", "_")} {")
|
||||
.appendln("graph [splines=ortho]")
|
||||
.appendln()
|
||||
super.visitFile(file)
|
||||
dotBuilder.appendln("}")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user