GitNexus/gitnexus/test/fixtures/rename-integration/go/unexport-same-package-function/case.json

30 lines
686 B
JSON

{
"language": "go",
"description": "Unexport a function whose every use stays in its declaring package, even though another package imports that package for unrelated symbols.",
"categories": ["cross-file", "visibility", "same-package"],
"target": {
"name": "Target",
"kind": "Function",
"file": "api/api.go"
},
"newName": "target",
"expect": {
"status": "success",
"edits": 2
},
"edges": [
{
"type": "CALLS",
"from": {
"name": "helper",
"kind": "Function",
"file": "api/helper.go"
},
"to": {
"name": "Target",
"kind": "Function",
"file": "api/api.go"
}
}
]
}