-
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.
issues/65: Dump circular references (#66)
- Loading branch information
Showing
8 changed files
with
194 additions
and
2 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
13 changes: 13 additions & 0 deletions
13
testdata/vars_test/TestCircularRef-with-NO-cirlce-DoNotShowPrivateFields.txt
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,13 @@ | ||
|
||
[ | ||
NAME: github.com/komuw/kama.Client | ||
KIND: struct | ||
SIGNATURE: [*kama.Client kama.Client] | ||
FIELDS: [ | ||
Public string | ||
] | ||
METHODS: [] | ||
SNIPPET: &Client{ | ||
Public: "PublicName", | ||
} | ||
] |
19 changes: 19 additions & 0 deletions
19
testdata/vars_test/TestCircularRef-with-NO-cirlce-ShowPrivateFields.txt
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,19 @@ | ||
|
||
[ | ||
NAME: github.com/komuw/kama.Client | ||
KIND: struct | ||
SIGNATURE: [*kama.Client kama.Client] | ||
FIELDS: [ | ||
Public string | ||
] | ||
METHODS: [] | ||
SNIPPET: &Client{ | ||
Public: "PublicName", | ||
srv: srvRef{ | ||
cli: &Client{ | ||
Public: "NewPubName", | ||
srv: srvRef{}, | ||
}, | ||
}, | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
testdata/vars_test/TestCircularRef-with-cirlce-DoNotShowPrivateFields.txt
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,13 @@ | ||
|
||
[ | ||
NAME: github.com/komuw/kama.Client | ||
KIND: struct | ||
SIGNATURE: [*kama.Client kama.Client] | ||
FIELDS: [ | ||
Public string | ||
] | ||
METHODS: [] | ||
SNIPPET: &Client{ | ||
Public: "PublicName", | ||
} | ||
] |
36 changes: 36 additions & 0 deletions
36
testdata/vars_test/TestCircularRef-with-cirlce-ShowPrivateFields.txt
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,36 @@ | ||
|
||
[ | ||
NAME: github.com/komuw/kama.Client | ||
KIND: struct | ||
SIGNATURE: [*kama.Client kama.Client] | ||
FIELDS: [ | ||
Public string | ||
] | ||
METHODS: [] | ||
SNIPPET: &Client{ | ||
Public: "PublicName", | ||
srv: srvRef{ | ||
cli: &Client{ | ||
Public: "PublicName", | ||
srv: srvRef{ | ||
cli: &Client{ | ||
Public: "PublicName", | ||
srv: srvRef{ | ||
cli: &Client{ | ||
Public: "PublicName", | ||
srv: srvRef{ | ||
cli: &Client{ | ||
Public: "PublicName", | ||
srv: srvRef{ | ||
cli: &Client: kama warning(indentation `11` exceeds max of `10`. Possible circular reference), | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} | ||
] |
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