You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Returns a message indicating a greeting.\n\n## Parameters\n\n- None\n## Description\nExecutes a print statement to display \"Hello world\"."
83
-
},%{}},
84
-
{{:function,:hello,0},26,["hello()"],
85
-
%{
86
-
"en"=>
87
-
"Returns the atom :world.\n\n## Parameters\n\n- None\n## Description\nReturns a predefined atom value."
88
-
},%{}},
89
-
{{:function,:my_func,1},34,["my_func(n)"],
90
-
%{
91
-
"en"=>
92
-
"Returns a description based on the input value.\n\n## Parameters\n\n- n - The input number to be described.\n## Description\n Generates a string representation of the input number."
93
-
},%{}},
94
-
{{:function,:my_func_2,1},9,["my_func_2(n)"],
95
-
%{
96
-
"en"=>
97
-
"Returns the string representation of the input number.\n\n## Parameters\n\n- n - an integer value.\n\n## Description\n Returns a string indicating the value of n."
98
-
},%{}}
99
-
]}}
74
+
{
75
+
%{
76
+
"en"=>
77
+
"Documentation for `LazyDoc`.\n\nThis module is an example of autogenerated docs by\nthe task provided.\n"
78
+
},
79
+
[
80
+
{
81
+
{:function,:func_without_doc,0},
82
+
31,
83
+
["func_without_doc()"],
84
+
%{
85
+
"en"=>
86
+
"Returns a message indicating a greeting.\n\n## Parameters\n\n- None\n## Description\nExecutes a print statement to display \"Hello world\"."
87
+
},
88
+
%{source_annos: [{32,7}]}
89
+
},
90
+
{
91
+
{:function,:hello,0},
92
+
26,
93
+
["hello()"],
94
+
%{
95
+
"en"=>
96
+
"Returns the atom :world.\n\n## Parameters\n\n- None\n## Description\nReturns a predefined atom value."
97
+
},
98
+
%{source_annos: [{27,7}]}
99
+
},
100
+
{
101
+
{:function,:my_func,1},
102
+
34,
103
+
["my_func(n)"],
104
+
%{
105
+
"en"=>
106
+
"Returns a description based on the input value.\n\n## Parameters\n\n- n - The input number to be described.\n## Description\n Generates a string representation of the input number."
107
+
},
108
+
%{source_annos: [{35,7}]}
109
+
},
110
+
{
111
+
{:function,:my_func_2,1},
112
+
9,
113
+
["my_func_2(n)"],
114
+
%{
115
+
"en"=>
116
+
"Returns the string representation of the input number.\n\n## Parameters\n\n- n - an integer value.\n\n## Description\n Returns a string indicating the value of n."
117
+
},
118
+
%{source_annos: [{14,7}]}
119
+
}
120
+
]
121
+
}}
100
122
]
101
123
102
124
assertdocs_per_module==expected_result
@@ -106,16 +128,21 @@ defmodule LazyDoc.TaskTest do
106
128
expected_result=
107
129
[
108
130
{LazyDoc.ExampleModule,
109
-
{:none,
110
-
[
111
-
{{:function,:bonjour,0},26,["bonjour()"],%{"en"=>" It says Bonjour\n"},%{}},
0 commit comments