-module(dream_test@context). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). -define(FILEPATH, "src/dream_test/context.gleam"). -export([new/0, failures/1, add_failure/2]). -export_type([test_context/0]). -type test_context() :: {test_context, list(dream_test@types:assertion_failure())}. -file("src/dream_test/context.gleam", 11). -spec new() -> test_context(). new() -> {test_context, []}. -file("src/dream_test/context.gleam", 15). -spec failures(test_context()) -> list(dream_test@types:assertion_failure()). failures(Context) -> erlang:element(2, Context). -file("src/dream_test/context.gleam", 19). -spec add_failure(test_context(), dream_test@types:assertion_failure()) -> test_context(). add_failure(Context, Failure) -> {test_context, [Failure | erlang:element(2, Context)]}.