Test Templates¶
Generated page
This page is generated by gen_mipp_docs.py from the JSON Schemas of the generator (generator/helpers_headers/schemas/, generator/helpers_tests/schemas/). To change it, edit the description fields of the schemas, not this page.
Code templates of the generated tests, in helpers_tests/tests_templates.json, grouped by section and by API (c, cpp, obj, or all). A template is a list of lines with {{placeholder}} variables, filled by tests_builder.py; the %token<params>(args)% markers are translated for each API by dialect_adapters.py.
Files (in generator/) |
Schema |
|---|---|
helpers_tests/tests_templates.json |
helpers_tests/schemas/templates_schema.json |
Fields¶
| Field | Type | Description |
|---|---|---|
assertions |
object | Required. Assertion snippets grouped by dialect namespace. |
assertions.c |
template_map |
|
assertions.cpp |
template_map |
|
assertions.obj |
template_map |
|
assertions.all |
template_map |
|
headers |
object | Required. Fixed include blocks grouped by dialect namespace. |
headers.c |
template_map |
|
headers.cpp |
template_map |
|
headers.obj |
template_map |
|
headers.all |
template_map |
|
func_templates |
object | Required. Structural boilerplate (function signatures, load blocks, section wrappers, lambdas) grouped by dialect namespace. |
func_templates.c |
template_map |
|
func_templates.cpp |
template_map |
|
func_templates.obj |
template_map |
|
func_templates.all |
template_map |
Definitions¶
template_map¶
Type: map of array of string. Named templates: each value is an array of template strings with {{placeholder}} variables.
| Field | Type | Description |
|---|---|---|
<template> |
array of string |