-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add snapshot project 'github_issue_102'
- Loading branch information
1 parent
8cff066
commit 5f087a7
Showing
4 changed files
with
80 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[package] | ||
name = "github_issue_102" | ||
version = "0.1.0" | ||
edition = "2018" |
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,15 @@ | ||
pub mod a { | ||
use self::b::X; | ||
|
||
pub mod b { | ||
pub struct X {} | ||
} | ||
pub mod c { | ||
pub struct Y {} | ||
} | ||
|
||
pub struct Z { | ||
x: X, | ||
y: c::Y, | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
tests/snapshots/generate_graph__github_issue_102__github_issue_102.snap
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,51 @@ | ||
--- | ||
source: tests/generate_graph.rs | ||
expression: output | ||
--- | ||
STDERR: | ||
|
||
STDOUT: | ||
digraph { | ||
|
||
graph [ | ||
label="github_issue_102", | ||
labelloc=t, | ||
|
||
pad=0.4, | ||
|
||
// Consider rendering the graph using a different layout algorithm, such as: | ||
// [dot, neato, twopi, circo, fdp, sfdp] | ||
layout=neato, | ||
overlap=false, | ||
splines="line", | ||
rankdir=LR, | ||
|
||
fontname="Helvetica", | ||
fontsize="36", | ||
]; | ||
|
||
node [ | ||
fontname="monospace", | ||
fontsize="10", | ||
shape="record", | ||
style="filled", | ||
]; | ||
|
||
edge [ | ||
fontname="monospace", | ||
fontsize="10", | ||
]; | ||
|
||
"github_issue_102" [label="crate|github_issue_102", fillcolor="#5397c8"]; // "crate" node | ||
"github_issue_102::a" [label="pub mod|a", fillcolor="#81c169"]; // "mod" node | ||
"github_issue_102::a::b" [label="pub mod|a::b", fillcolor="#81c169"]; // "mod" node | ||
"github_issue_102::a::c" [label="pub mod|a::c", fillcolor="#81c169"]; // "mod" node | ||
|
||
"github_issue_102" -> "github_issue_102::a" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge | ||
"github_issue_102::a" -> "github_issue_102::a::b" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge | ||
"github_issue_102::a" -> "github_issue_102::a::b" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge | ||
"github_issue_102::a" -> "github_issue_102::a::c" [label="owns", color="#000000", style="solid"] [constraint=true]; // "owns" edge | ||
"github_issue_102::a" -> "github_issue_102::a::c" [label="uses", color="#7f7f7f", style="dashed"] [constraint=false]; // "uses" edge | ||
|
||
} | ||
|