@@ -38,8 +38,8 @@ defmodule ExDoc.RefsTest do
38
38
assert Refs . get_visibility ( { :function , WithModuleDoc , :_no_doc , 0 } ) == :hidden
39
39
assert Refs . get_visibility ( { :function , WithModuleDoc , :_doc_false , 0 } ) == :hidden
40
40
41
- assert Refs . get_visibility ( { :function , InMemory , :no_doc , 0 } ) == :public
42
41
# unable to read documentation, visibility is set to :public
42
+ assert Refs . get_visibility ( { :function , InMemory , :no_doc , 0 } ) == :public
43
43
assert Refs . get_visibility ( { :function , InMemory , :doc_false , 0 } ) == :public
44
44
assert Refs . get_visibility ( { :function , InMemory , :with_doc , 0 } ) == :public
45
45
assert Refs . get_visibility ( { :function , InMemory , :non_existant , 0 } ) == :undefined
@@ -54,6 +54,9 @@ defmodule ExDoc.RefsTest do
54
54
assert Refs . get_visibility ( { :type , :sets , :set , 9 } ) == :undefined
55
55
assert Refs . get_visibility ( { :type , WithoutModuleDoc , :a_type , 0 } ) == :public
56
56
57
+ # types cannot be read for inmemory modules
58
+ assert Refs . get_visibility ( { :type , InMemory , :a_type , 0 } ) == :undefined
59
+
57
60
assert Refs . get_visibility ( { :callback , GenServer , :handle_call , 3 } ) == :public
58
61
assert Refs . get_visibility ( { :callback , GenServer , :handle_call , 9 } ) == :undefined
59
62
assert Refs . get_visibility ( { :callback , :gen_server , :handle_call , 3 } ) == :public
0 commit comments