File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,16 @@ defmodule ExUnit do
148148 end
149149
150150 defmodule TimeoutError do
151+ @ moduledoc """
152+ Exception raised when a test times out.
153+ """
154+
155+ @ typedoc since: "1.16.0"
156+ @ type t :: % __MODULE__ {
157+ timeout: non_neg_integer ,
158+ type: String . t ( )
159+ }
160+
151161 defexception [ :timeout , :type ]
152162
153163 @ impl true
Original file line number Diff line number Diff line change 11defmodule ExUnit.DuplicateTestError do
2+ @ moduledoc """
3+ Exception raised to indicate two or more tests with the same name.
4+ """
5+
6+ @ typedoc since: "1.16.0"
7+ @ type t :: % __MODULE__ { message: String . t ( ) }
8+
29 defexception [ :message ]
310end
411
512defmodule ExUnit.DuplicateDescribeError do
13+ @ moduledoc """
14+ Exception raised to indicate two or more `describe` blocks with
15+ the same name.
16+ """
17+
18+ @ typedoc since: "1.16.0"
19+ @ type t :: % __MODULE__ { message: String . t ( ) }
20+
621 defexception [ :message ]
722end
823
Original file line number Diff line number Diff line change @@ -152,6 +152,12 @@ defmodule ExUnit.DocTest do
152152 @ opaque_type_regex ~r/ #[\w \. ]+</
153153
154154 defmodule Error do
155+ @ moduledoc """
156+ Exception raised when there's an error with the syntax or semantics of a doctest.
157+ """
158+
159+ @ typedoc since: "1.16.0"
160+ @ type t :: % __MODULE__ { message: String . t ( ) }
155161 defexception [ :message ]
156162
157163 @ impl true
You can’t perform that action at this time.
0 commit comments