Skip to content

Commit 2e167cd

Browse files
juiwenchenubmarco
authored andcommitted
for TC
1 parent 0de3b6e commit 2e167cd

1 file changed

Lines changed: 112 additions & 0 deletions

File tree

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
[
2+
{
3+
"filepath": "/home/jui-wen/git_repo/ub/sphinx-codelinks/tests/data/marked_rst/dummy_1.cpp",
4+
"remote_url": "https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/marked_rst/dummy_1.cpp#L4",
5+
"source_map": {
6+
"start": { "row": 3, "column": 8 },
7+
"end": { "row": 3, "column": 61 }
8+
},
9+
"tagged_scope": "void dummy_func1(){\n //...\n }",
10+
"rst": ".. impl:: implement dummy function 1\n :id: IMPL_71\n",
11+
"type": "rst"
12+
},
13+
{
14+
"filepath": "/home/jui-wen/git_repo/ub/sphinx-codelinks/tests/data/marked_rst/dummy_1.cpp",
15+
"remote_url": "https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/marked_rst/dummy_1.cpp#L14",
16+
"source_map": {
17+
"start": { "row": 13, "column": 7 },
18+
"end": { "row": 13, "column": 40 }
19+
},
20+
"tagged_scope": "int main() {\n std::cout << \"Starting demo_1...\" << std::endl;\n dummy_func1();\n std::cout << \"Demo_1 finished.\" << std::endl;\n return 0;\n }",
21+
"rst": "..impl:: implement main function ",
22+
"type": "rst"
23+
},
24+
{
25+
"filepath": "/home/jui-wen/git_repo/ub/sphinx-codelinks/tests/data/need_id_refs/dummy_1.cpp",
26+
"remote_url": "https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/need_id_refs/dummy_1.cpp#L3",
27+
"source_map": {
28+
"start": { "row": 2, "column": 13 },
29+
"end": { "row": 2, "column": 51 }
30+
},
31+
"tagged_scope": "void dummy_func1(){\n //...\n }",
32+
"need_ids": ["NEED_001", "NEED_002", "NEED_003", "NEED_004"],
33+
"marker": "@need-ids:",
34+
"type": "need-id-refs"
35+
},
36+
{
37+
"filepath": "/home/jui-wen/git_repo/ub/sphinx-codelinks/tests/data/need_id_refs/dummy_1.cpp",
38+
"remote_url": "https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/need_id_refs/dummy_1.cpp#L8",
39+
"source_map": {
40+
"start": { "row": 7, "column": 13 },
41+
"end": { "row": 7, "column": 21 }
42+
},
43+
"tagged_scope": "int main() {\n std::cout << \"Starting demo_1...\" << std::endl;\n dummy_func1();\n std::cout << \"Demo_1 finished.\" << std::endl;\n return 0;\n }",
44+
"need_ids": ["NEED_003"],
45+
"marker": "@need-ids:",
46+
"type": "need-id-refs"
47+
},
48+
{
49+
"filepath": "/home/jui-wen/git_repo/ub/sphinx-codelinks/tests/data/oneline_comment_default/default_oneliners.c",
50+
"remote_url": "https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/oneline_comment_default/default_oneliners.c#L1",
51+
"source_map": {
52+
"start": { "row": 0, "column": 4 },
53+
"end": { "row": 0, "column": 24 }
54+
},
55+
"tagged_scope": "void foo() {}",
56+
"need": {
57+
"title": "Function Foo",
58+
"id": "IMPL_1",
59+
"type": "impl",
60+
"links": []
61+
},
62+
"type": "need"
63+
},
64+
{
65+
"filepath": "/home/jui-wen/git_repo/ub/sphinx-codelinks/tests/data/oneline_comment_default/default_oneliners.c",
66+
"remote_url": "https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/oneline_comment_default/default_oneliners.c#L4",
67+
"source_map": {
68+
"start": { "row": 3, "column": 4 },
69+
"end": { "row": 3, "column": 24 }
70+
},
71+
"tagged_scope": "void bar() {}",
72+
"need": {
73+
"title": "Function Bar",
74+
"id": "IMPL_2",
75+
"type": "impl",
76+
"links": []
77+
},
78+
"type": "need"
79+
},
80+
{
81+
"filepath": "/home/jui-wen/git_repo/ub/sphinx-codelinks/tests/data/oneline_comment_default/default_oneliners.c",
82+
"remote_url": "https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/oneline_comment_default/default_oneliners.c#L7",
83+
"source_map": {
84+
"start": { "row": 6, "column": 4 },
85+
"end": { "row": 6, "column": 39 }
86+
},
87+
"tagged_scope": "void baz() {}",
88+
"need": {
89+
"title": "Function Baz, as I want it",
90+
"id": "IMPL_3",
91+
"type": "impl",
92+
"links": []
93+
},
94+
"type": "need"
95+
},
96+
{
97+
"filepath": "/home/jui-wen/git_repo/ub/sphinx-codelinks/tests/data/oneline_comment_default/default_oneliners.c",
98+
"remote_url": "https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/oneline_comment_default/default_oneliners.c#L10",
99+
"source_map": {
100+
"start": { "row": 9, "column": 4 },
101+
"end": { "row": 9, "column": 51 }
102+
},
103+
"tagged_scope": "void bar() {}",
104+
"need": {
105+
"title": "Function Bar,",
106+
"id": "IMPL_4",
107+
"type": "impl",
108+
"links": ["SPEC_1", "SPEC_2"]
109+
},
110+
"type": "need"
111+
}
112+
]

0 commit comments

Comments
 (0)