Commit 39be967
committed
Improve typespecs for
`:exclude` can be:
- an atom
- a list of atoms and keyword elements
Based on the documentation, we can see that:
- `:exclude` can be a tag, and tags can be atoms:
- https://github.com/elixir-lang/elixir/blob/a2a669eb7b72d74ccc11a652f2f089ceb24b1b84/lib/ex_unit/lib/ex_unit/case.ex#L120
- https://github.com/elixir-lang/elixir/blob/a2a669eb7b72d74ccc11a652f2f089ceb24b1b84/lib/ex_unit/lib/ex_unit/case.ex#L256
- The can be list of atoms combined with keyword lists::
- https://github.com/elixir-lang/elixir/blob/a2a669eb7b72d74ccc11a652f2f089ceb24b1b84/lib/mix/test/test_helper.exs#L62-L64
`:include` works same way as `:exclude`, so same rules apply.t:ExUnit.configure_opts/0
1 parent a2a669e commit 39be967
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
0 commit comments