Sha256: 09005f37fdf3dff1881b2ba9eb0fb42a93c4dc7b7f9378fd12103696ae4456b7

Contents?: true

Size: 588 Bytes

Versions: 116

Compression:

Stored size: 588 Bytes

Contents

-module('tgen_hello-world').

-behaviour(tgen).

-export([
    available/0,
    version/0,
    generate_test/1
]).

-spec available() -> true.
available() ->
    true.

version() -> 2.

generate_test(#{description := Desc, expected := Exp, property := Prop}) ->
    TestName = tgen:to_test_name(Desc),
    Expected = binary_to_list(Exp),
    Property = binary_to_list(Prop),

    Fn = tgs:simple_fun(TestName, [
            tgs:call_macro("assertEqual", [
                tgs:value(Expected),
                tgs:call_fun("hello_world:" ++ Property, [])])]),

    {ok, Fn, [{Prop, []}]}.

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.179 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.178 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.177 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.176 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.175 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.174 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.173 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.172 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.171 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.170 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.169 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.167 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.166 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.165 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.164 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.163 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.162 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.161 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.160 tracks/erlang/testgen/src/tgen_hello-world.erl