Skip to content

Commit ad3ee06

Browse files
committed
Updated test cases docs (#348)
1 parent ca93ebc commit ad3ee06

File tree

373 files changed

+5172
-5000
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

373 files changed

+5172
-5000
lines changed

docs/test_cases/t00002.md

+50-16
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ diagrams:
2525
- '{% set e=element("A") %} note for {{ e.alias }} "{{ trim(e.comment.brief.0) }}"'
2626
- '{% set e=element("clanguml::t00002::B") %} note for {{ e.alias }} "{{ trim(e.comment.brief.0) }}"'
2727
- 'note for {{ alias("D") }} "{{ comment("D").text }}"'
28+
graphml:
29+
notes:
30+
'clanguml::t00002::A':
31+
- '{% set e=element("A") %}{{ trim(e.comment.brief.0) }}'
32+
'clanguml::t00002::B':
33+
- '{% set e=element("clanguml::t00002::B") %}{{ trim(e.comment.brief.0) }}'
34+
'clanguml::t00002::D':
35+
- '{% set e=element("D") %}{{ comment("D").text }}'
2836
```
2937
## Source code
3038
File `tests/t00002/t00002.cc`
@@ -704,8 +712,9 @@ private:
704712
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
705713
<desc><![CDATA[Basic class diagram example]]></desc>
706714
<key attr.name="id" attr.type="string" for="graph" id="gd0" />
707-
<key attr.name="type" attr.type="string" for="graph" id="gd1" />
708-
<key attr.name="using_namespace" attr.type="string" for="graph" id="gd2" />
715+
<key attr.name="diagram_type" attr.type="string" for="graph" id="gd1" />
716+
<key attr.name="name" attr.type="string" for="graph" id="gd2" />
717+
<key attr.name="using_namespace" attr.type="string" for="graph" id="gd3" />
709718
<key attr.name="id" attr.type="string" for="node" id="nd0" />
710719
<key attr.name="type" attr.type="string" for="node" id="nd1" />
711720
<key attr.name="name" attr.type="string" for="node" id="nd2" />
@@ -718,74 +727,99 @@ private:
718727
<key attr.name="label" attr.type="string" for="edge" id="ed2" />
719728
<key attr.name="url" attr.type="string" for="edge" id="ed3" />
720729
<graph id="g0" edgedefault="directed" parse.nodeids="canonical" parse.edgeids="canonical" parse.order="nodesfirst">
721-
<data key="gd2">clanguml::t00002</data>
730+
<data key="gd3">clanguml::t00002</data>
722731
<node id="n0">
723732
<data key="nd1">class</data>
724733
<data key="nd2"><![CDATA[A]]></data>
725734
<data key="nd3">abstract</data>
726735
<data key="nd6">false</data>
727-
<data key="nd4">https://github.com/bkryza/clang-uml/blob/974c6f4a38a48a553ba3f79495af6c960d22884f/tests/t00002/t00002.cc#L7</data>
736+
<data key="nd4">https://github.com/bkryza/clang-uml/blob/ca93ebc700c4d8ac5504d33adbb899f44e90a1a4/tests/t00002/t00002.cc#L7</data>
728737
<data key="nd5">This is class A</data>
729738
</node>
730739
<node id="n1">
731740
<data key="nd1">class</data>
732741
<data key="nd2"><![CDATA[B]]></data>
733742
<data key="nd6">false</data>
734-
<data key="nd4">https://github.com/bkryza/clang-uml/blob/974c6f4a38a48a553ba3f79495af6c960d22884f/tests/t00002/t00002.cc#L16</data>
743+
<data key="nd4">https://github.com/bkryza/clang-uml/blob/ca93ebc700c4d8ac5504d33adbb899f44e90a1a4/tests/t00002/t00002.cc#L16</data>
735744
<data key="nd5">This is class B</data>
736745
</node>
737746
<node id="n2">
738747
<data key="nd1">class</data>
739748
<data key="nd2"><![CDATA[C]]></data>
740749
<data key="nd6">false</data>
741-
<data key="nd4">https://github.com/bkryza/clang-uml/blob/974c6f4a38a48a553ba3f79495af6c960d22884f/tests/t00002/t00002.cc#L27</data>
750+
<data key="nd4">https://github.com/bkryza/clang-uml/blob/ca93ebc700c4d8ac5504d33adbb899f44e90a1a4/tests/t00002/t00002.cc#L27</data>
742751
<data key="nd5">This is class C - class C has a long comment</data>
743752
</node>
744753
<node id="n3">
745754
<data key="nd1">class</data>
746755
<data key="nd2"><![CDATA[D]]></data>
747756
<data key="nd6">false</data>
748-
<data key="nd4">https://github.com/bkryza/clang-uml/blob/974c6f4a38a48a553ba3f79495af6c960d22884f/tests/t00002/t00002.cc#L36</data>
757+
<data key="nd4">https://github.com/bkryza/clang-uml/blob/ca93ebc700c4d8ac5504d33adbb899f44e90a1a4/tests/t00002/t00002.cc#L36</data>
749758
<data key="nd5">D</data>
750759
</node>
751760
<node id="n4">
752761
<data key="nd1">class</data>
753762
<data key="nd2"><![CDATA[E]]></data>
754763
<data key="nd6">false</data>
755-
<data key="nd4">https://github.com/bkryza/clang-uml/blob/974c6f4a38a48a553ba3f79495af6c960d22884f/tests/t00002/t00002.cc#L61</data>
764+
<data key="nd4">https://github.com/bkryza/clang-uml/blob/ca93ebc700c4d8ac5504d33adbb899f44e90a1a4/tests/t00002/t00002.cc#L61</data>
756765
<data key="nd5">E</data>
757766
</node>
758-
<edge id="e0" source="n1" target="n0">
767+
<node id="n5">
768+
<data key="nd1">note</data>
769+
<data key="nd2"><![CDATA[This is class A]]></data>
770+
</node>
771+
<node id="n6">
772+
<data key="nd1">note</data>
773+
<data key="nd2"><![CDATA[This is class B]]></data>
774+
</node>
775+
<node id="n7">
776+
<data key="nd1">note</data>
777+
<data key="nd2"><![CDATA[
778+
This is class D
779+
which is a little like B
780+
and a little like C
781+
]]></data>
782+
</node>
783+
<edge id="e0" source="n5" target="n0">
784+
<data key="ed0">none</data>
785+
</edge>
786+
<edge id="e1" source="n6" target="n1">
787+
<data key="ed0">none</data>
788+
</edge>
789+
<edge id="e2" source="n7" target="n3">
790+
<data key="ed0">none</data>
791+
</edge>
792+
<edge id="e3" source="n1" target="n0">
759793
<data key="ed0">extension</data>
760794
<data key="ed1">public</data>
761795
</edge>
762-
<edge id="e1" source="n2" target="n0">
796+
<edge id="e4" source="n2" target="n0">
763797
<data key="ed0">extension</data>
764798
<data key="ed1">public</data>
765799
</edge>
766-
<edge id="e2" source="n3" target="n0">
800+
<edge id="e5" source="n3" target="n0">
767801
<data key="ed0">association</data>
768802
<data key="ed2">as</data>
769803
<data key="ed1">private</data>
770804
</edge>
771-
<edge id="e3" source="n3" target="n1">
805+
<edge id="e6" source="n3" target="n1">
772806
<data key="ed0">extension</data>
773807
<data key="ed1">public</data>
774808
</edge>
775-
<edge id="e4" source="n3" target="n2">
809+
<edge id="e7" source="n3" target="n2">
776810
<data key="ed0">extension</data>
777811
<data key="ed1">public</data>
778812
</edge>
779-
<edge id="e5" source="n4" target="n0">
813+
<edge id="e8" source="n4" target="n0">
780814
<data key="ed0">association</data>
781815
<data key="ed2">as</data>
782816
<data key="ed1">private</data>
783817
</edge>
784-
<edge id="e6" source="n4" target="n1">
818+
<edge id="e9" source="n4" target="n1">
785819
<data key="ed0">extension</data>
786820
<data key="ed1">public</data>
787821
</edge>
788-
<edge id="e7" source="n4" target="n2">
822+
<edge id="e10" source="n4" target="n2">
789823
<data key="ed0">extension</data>
790824
<data key="ed1">public</data>
791825
</edge>

0 commit comments

Comments
 (0)