mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Field roles, add C test
This commit is contained in:
parent
d5598b363e
commit
27d40519c1
4
tests/roots/test-domain-c/field-role.rst
Normal file
4
tests/roots/test-domain-c/field-role.rst
Normal file
@ -0,0 +1,4 @@
|
||||
.. c:function:: void f(int a, int *b)
|
||||
|
||||
:param int a:
|
||||
:param int* b:
|
@ -630,6 +630,13 @@ def test_build_ns_lookup(app, warning):
|
||||
assert len(ws) == 0
|
||||
|
||||
|
||||
@pytest.mark.sphinx(testroot='domain-c', confoverrides={'nitpicky': True})
|
||||
def test_build_field_role(app, status, warning):
|
||||
app.builder.build_all()
|
||||
ws = filter_warnings(warning, "field-role")
|
||||
assert len(ws) == 0
|
||||
|
||||
|
||||
def _get_obj(app, queryName):
|
||||
domain = app.env.get_domain('c')
|
||||
for name, dispname, objectType, docname, anchor, prio in domain.get_objects():
|
||||
|
Loading…
Reference in New Issue
Block a user