Skip to content

Commit

Permalink
unify test files
Browse files Browse the repository at this point in the history
#refactor
  • Loading branch information
alandefreitas committed Jan 22, 2025
1 parent 256c583 commit 37d9b93
Show file tree
Hide file tree
Showing 34 changed files with 1,755 additions and 181 deletions.
7 changes: 0 additions & 7 deletions test-files/adoc/compile_commands.json

This file was deleted.

13 changes: 0 additions & 13 deletions test-files/adoc/mrdocs.yml

This file was deleted.

27 changes: 0 additions & 27 deletions test-files/adoc/test.cpp

This file was deleted.

45 changes: 0 additions & 45 deletions test-files/adoc/test.xml

This file was deleted.

82 changes: 82 additions & 0 deletions test-files/golden-tests/javadoc/brief-4.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
= Reference
:mrdocs:

[#index]
== Global namespace


=== Functions

[cols=1]
|===
| Name

| <<f0,`f0`>>
| <<f1,`f1`>>
| <<f2,`f2`>>
| <<f3,`f3`>>
|===

[#f0]
== f0


=== Synopsis


Declared in `&lt;brief&hyphen;4&period;cpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
f0();
----

[#f1]
== f1


=== Synopsis


Declared in `&lt;brief&hyphen;4&period;cpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
f1();
----

[#f2]
== f2


=== Synopsis


Declared in `&lt;brief&hyphen;4&period;cpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
f2();
----

[#f3]
== f3


=== Synopsis


Declared in `&lt;brief&hyphen;4&period;cpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
f3();
----



[.small]#Created with https://www.mrdocs.com[MrDocs]#
File renamed without changes.
98 changes: 98 additions & 0 deletions test-files/golden-tests/javadoc/brief-4.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<html lang="en">
<head>
<title>Reference</title>
</head>
<body>
<div>
<h1>Reference</h1>
<div>
<div>
<h2 id="index">Global namespace</h2>
</div>
<h2>Functions</h2>
<table style="table-layout: fixed; width: 100%;">
<thead>
<tr>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="#f0"><code>f0</code></a> </td></tr><tr>
<td><a href="#f1"><code>f1</code></a> </td></tr><tr>
<td><a href="#f2"><code>f2</code></a> </td></tr><tr>
<td><a href="#f3"><code>f3</code></a> </td></tr>
</tbody>
</table>
</div>
<div>
<div>
<h2 id="f0">f0</h2>
</div>
<div>
<h3>Synopsis</h3>
<div>
Declared in <code>&lt;brief-4.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
void
f0();
</code>
</pre>
</div>
</div>
<div>
<div>
<h2 id="f1">f1</h2>
</div>
<div>
<h3>Synopsis</h3>
<div>
Declared in <code>&lt;brief-4.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
void
f1();
</code>
</pre>
</div>
</div>
<div>
<div>
<h2 id="f2">f2</h2>
</div>
<div>
<h3>Synopsis</h3>
<div>
Declared in <code>&lt;brief-4.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
void
f2();
</code>
</pre>
</div>
</div>
<div>
<div>
<h2 id="f3">f3</h2>
</div>
<div>
<h3>Synopsis</h3>
<div>
Declared in <code>&lt;brief-4.cpp&gt;</code></div>
<pre>
<code class="source-code cpp">
void
f3();
</code>
</pre>
</div>
</div>

</div>
<div>
<h4>Created with <a href="https://www.mrdocs.com">MrDocs</a></h4>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<mrdocs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://github.com/cppalliance/mrdocs/raw/develop/mrdocs.rnc">
<namespace>
<namespace id="//////////////////////////8=">
<function name="f0" id="e1UQQek5v3C9OClW5cGf57XvwQo=">
<file path="brief-1.cpp" line="3"/>
<file short-path="brief-4.cpp" source-path="brief-4.cpp" line="3"/>
</function>
<function name="f1" id="CnO51rIKTzfiVKHkR3TdPa0eo+8=">
<file path="brief-1.cpp" line="6"/>
<file short-path="brief-4.cpp" source-path="brief-4.cpp" line="6"/>
</function>
<function name="f2" id="0MJUv5yGFR9nXWFLeYc+rjOY+iM=">
<file path="brief-1.cpp" line="10"/>
<file short-path="brief-4.cpp" source-path="brief-4.cpp" line="10"/>
</function>
<function name="f3" id="khwJweIqd5FuWAg8T+l+GEljQVc=">
<file path="brief-1.cpp" line="15"/>
<file short-path="brief-4.cpp" source-path="brief-4.cpp" line="15"/>
</function>
</namespace>
</mrdocs>
Loading

0 comments on commit 37d9b93

Please sign in to comment.