Current section
Files
Jump to
Current section
Files
src/startest@config.erl
-module(startest@config).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([with_reporters/2, with_discover_describe_tests_pattern/2, with_discover_standalone_tests_pattern/2, with_filters/2, with_test_name_pattern/2]).
-export_type([config/0]).
-type config() :: {config,
list(startest@reporters:reporter()),
gleam@regex:regex(),
gleam@regex:regex(),
list(binary()),
gleam@option:option(binary())}.
-file("/Users/maxdeviant/projects/startest/src/startest/config.gleam", 29).
-spec with_reporters(config(), list(startest@reporters:reporter())) -> config().
with_reporters(Config, Reporters) ->
erlang:setelement(2, Config, Reporters).
-file("/Users/maxdeviant/projects/startest/src/startest/config.gleam", 34).
-spec with_discover_describe_tests_pattern(config(), gleam@regex:regex()) -> config().
with_discover_describe_tests_pattern(Config, Discover_describe_tests_pattern) ->
erlang:setelement(3, Config, Discover_describe_tests_pattern).
-file("/Users/maxdeviant/projects/startest/src/startest/config.gleam", 45).
-spec with_discover_standalone_tests_pattern(config(), gleam@regex:regex()) -> config().
with_discover_standalone_tests_pattern(
Config,
Discover_standalone_tests_pattern
) ->
erlang:setelement(4, Config, Discover_standalone_tests_pattern).
-file("/Users/maxdeviant/projects/startest/src/startest/config.gleam", 56).
-spec with_filters(config(), list(binary())) -> config().
with_filters(Config, Filters) ->
erlang:setelement(5, Config, Filters).
-file("/Users/maxdeviant/projects/startest/src/startest/config.gleam", 61).
-spec with_test_name_pattern(config(), gleam@option:option(binary())) -> config().
with_test_name_pattern(Config, Test_name_pattern) ->
erlang:setelement(6, Config, Test_name_pattern).