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.139 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.138 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.137 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.136 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.135 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.134 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.133 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.132 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.131 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.130 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.129 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.128 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.127 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.126 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.125 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.124 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.123 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.122 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.121 tracks/erlang/testgen/src/tgen_hello-world.erl
trackler-2.2.1.120 tracks/erlang/testgen/src/tgen_hello-world.erl