Skip to content

Commit f622c24

Browse files
authored
Update test for testing of all typespec attributes
1 parent 79c1a87 commit f622c24

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/credo/check/readability/nested_function_calls_test.exs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ defmodule Credo.Check.Readability.NestedFunctionCallsTest do
1010
test "it should NOT report code with no nested function calls" do
1111
"""
1212
defmodule CredoSampleModule do
13+
@callback callback_name :: Keyword.t(Some.remote(some_arg))
14+
@macrocallback macrocallback_name :: Keyword.t(Some.remote(some_arg))
15+
@spec spec_name :: Keyword.t(Some.remote(some_arg))
16+
@opaque opaque_name :: Keyword.t(Some.remote(some_arg))
1317
@type type_name :: Keyword.t(Some.remote(some_arg))
14-
def some_code(_foo) do
15-
Enum.shuffle([1,2,3])
16-
end
18+
@typep typep_name :: Keyword.t(Some.remote(some_arg))
1719
end
1820
"""
1921
|> to_source_file()

0 commit comments

Comments
 (0)