DlangT

\struct DlangT D-source generator

Members

Functions

issue
string[] issue(const(Group) group)
Undocumented in source. Be warned that the author may not have intended to support it.
issue
string issue(const(ScenarioGroup) scenario_group)
Undocumented in source. Be warned that the author may not have intended to support it.
issue
string issue(const(I) info)
Undocumented in source. Be warned that the author may not have intended to support it.
issue
void issue(const(FeatureGroup) feature_group)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

preparations
string[] preparations;
Undocumented in source.

Variables

bout
Stream bout;
Undocumented in source.

Examples

Examples: Converting a FeatureGroup to a D-source skeleten

auto bout = new OutBuffer;
auto dlang = Dlang(bout);
alias unit_mangle = mangleFunc!(DlangU);
const feature_group = getFeature!(tagion.behaviour.BehaviourUnittest);
{
    scope (exit) {
        bout.clear;
    }
    enum filename = unit_mangle("feature")
            .setExtension(FileExtension.dsrc);
    dlang.issue(feature_group);
    immutable result = bout.toString;
    version (behaviour_unitdata)
        filename.unitfile.setExtension("dtest").fwrite(result.trim_source.join("\n"));
    enum expected = import(filename);
    assert(equal(
            result
            .trim_source,
            expected
            .trim_source
    ));
}

Meta