-module(startest@config). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]). -export([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())}. -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). -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). -spec with_filters(config(), list(binary())) -> config(). with_filters(Config, Filters) -> erlang:setelement(5, Config, Filters). -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).