summaryrefslogtreecommitdiffstats
path: root/src/test/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/templates')
-rw-r--r--src/test/templates/pathgentest.mako.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/test/templates/pathgentest.mako.hpp b/src/test/templates/pathgentest.mako.hpp
new file mode 100644
index 0000000..b217c56
--- /dev/null
+++ b/src/test/templates/pathgentest.mako.hpp
@@ -0,0 +1,28 @@
+const std::array<std::string, ${len(meta)}> meta = {
+% for m in meta:
+ "${m.name}"s,
+% endfor
+};
+
+const std::array<std::string, ${len(paths)}> paths = {
+% for p in paths:
+ "${p.name}"s,
+% endfor
+};
+
+const std::array<PathMeta, ${len(pathmeta)}> pathMeta = {{
+% for p in pathmeta:
+ PathMeta{ paths[${p.path}], meta[${p.meta}] },
+% endfor
+}};
+
+const std::array<RefVector<const std::string>, ${len(pathgroups)}> groups = {{
+% for g in pathgroups:
+ // ${g.name}
+ {
+ % for p in g.members:
+ paths[${p[0]}],
+ % endfor
+ },
+% endfor
+}};
OpenPOWER on IntegriCloud