Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-test-properties
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-test-properties
Commits
ef4b096b
Verified
Commit
ef4b096b
authored
Nov 05, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trace documentation parsing error and warnings
parent
0dac7ca9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/testproperties.icl
src/testproperties.icl
+7
-3
No files found.
src/testproperties.icl
View file @
ef4b096b
...
...
@@ -238,11 +238,11 @@ handleModule opts fp w
[(
pd
,
id
)
\\
pd
=:(
PD_Function
pos
id
_
_
_
_)
<-
dcldefs
]
++
[(
pd
,
id
)
\\
pd
=:(
PD_TypeSpec
pos
id
_
_
_)
<-
dcldefs
],
Just
docstring
<-
[
getComment
pd
documentation
],
Right
(
doc
,_)
<-
[
parseDoc
docstring
]
]
doc
<-
parseDocWithWarnings
docstring
]
[(
id
.
id_name
,
doc
)
\\
pd
=:(
PD_Type
{
td_ident
=
id
})
<-
dcldefs
,
Just
docstring
<-
[
getComment
pd
documentation
],
Right
(
doc
,_)
<-
[
parseDoc
docstring
]
]
doc
<-
parseDocWithWarnings
docstring
]
// Write properties
|
nprops
==
0
=
w
#
w
=
output
INFO
...
...
@@ -287,11 +287,15 @@ where
interleave
_
[]
=
[]
interleave
g
[
x
:
xs
]
=
[
g
,
x
:
interleave
g
xs
]
parseDocWithWarnings
s
=
case
parseDoc
s
of
Left
e
->
traceParseError
e
[]
Right
(
r
,
ws
)
->
traceParseWarnings
ws
[
r
]
generatePropertyModule
::
!
String
!
String
![
String
]
![
String
]
!(
Maybe
ModuleDoc
)
![(!
String
,
!
FunctionDoc
)]
![(!
String
,
!
TypeDoc
)]
->
(!
Int
,
!
Real
,
!
String
)
generatePropertyModule
testmodname
modname
print_options
test_options
mod_doc
fes
tes
=
(
length
props
,
coverage
,
tests
)
=
(
n_
props
,
coverage
,
tests
)
where
n_props
=
length
props
coverage
=
toReal
(
length
(
filter
(
not
o
isEmpty
)
propsets
))
/
toReal
(
length
fes
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment