Brought documentation up to date
This commit is contained in:
parent
66da871bb8
commit
0ae34c8ac1
35 changed files with 3894 additions and 1409 deletions
|
|
@ -104,31 +104,31 @@
|
|||
033 [dog-and-duck.quack.picky.constants :refer [actor-types]]
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
034 [dog-and-duck.quack.picky.utils :refer [any-or-faults
|
||||
034 [dog-and-duck.quack.picky.objects :refer [coll-object-reference-or-fault
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
035 coll-object-reference-or-fault
|
||||
035 object-faults
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
036 concat-non-empty
|
||||
036 object-reference-or-faults]]
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
037 has-activity-type?
|
||||
037 [dog-and-duck.quack.picky.utils :refer [any-or-faults
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
038 has-actor-type? has-type?
|
||||
038 concat-non-empty
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
039 has-type-or-fault
|
||||
039 has-activity-type?
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
040 make-fault-object
|
||||
040 has-actor-type? has-type?
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
041 object-faults
|
||||
041 has-type-or-fault
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
042 object-reference-or-faults
|
||||
042 make-fault-object
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
043 string-or-fault]])
|
||||
|
|
@ -628,134 +628,137 @@
|
|||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
208 [x]
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 5 forms covered">
|
||||
209 (concat-non-empty (persistent-object-faults x)
|
||||
<span class="not-covered" title="0 out of 2 forms covered">
|
||||
209 (concat-non-empty
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 3 forms covered">
|
||||
210 (activity-type-faults x)
|
||||
210 (persistent-object-faults x)
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 3 forms covered">
|
||||
211 (activity-type-faults x)
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 2 forms covered">
|
||||
211 (list
|
||||
212 (list
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 3 forms covered">
|
||||
212 (when-not
|
||||
213 (when-not
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 3 forms covered">
|
||||
213 (has-activity-type? x)
|
||||
214 (has-activity-type? x)
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 4 forms covered">
|
||||
214 (make-fault-object :must :not-activity-type))
|
||||
215 (make-fault-object :must :not-activity-type))
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 12 forms covered">
|
||||
215 (when-not (string? (:summary x)) (make-fault-object :should :no-summary)))))
|
||||
216 (when-not (string? (:summary x)) (make-fault-object :should :no-summary)))))
|
||||
</span><br/>
|
||||
<span class="blank" title="0 out of 0 forms covered">
|
||||
216
|
||||
217
|
||||
</span><br/>
|
||||
<span class="covered" title="1 out of 1 forms covered">
|
||||
217 (defn collection-faults
|
||||
218 (defn collection-faults
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
218 "Return a list of faults found in the collection `x`; if `type` is also
|
||||
219 "Return a list of faults found in the collection `x`; if `type` is also
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
219 specified, it should be a string naming a specific collection type for
|
||||
220 specified, it should be a string naming a specific collection type for
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
220 which checks should be performed.
|
||||
221 which checks should be performed.
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
221
|
||||
222
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
222 Every collection *should*(?) have a `totalItems` field (an integer).
|
||||
223 Every collection *should*(?) have a `totalItems` field (an integer).
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
223
|
||||
224
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
224 Beyond that, collections are either 'just collections' (in which case
|
||||
225 Beyond that, collections are either 'just collections' (in which case
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
225 they *should* have an `items` field (a sequence)), or else they're paged
|
||||
226 they *should* have an `items` field (a sequence)), or else they're paged
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
226 collections, in which case they *must*(?) have a `first` field which is
|
||||
227 collections, in which case they *must*(?) have a `first` field which is
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
227 a collection page or a URI pointing to a collection page, and *should*
|
||||
228 a collection page or a URI pointing to a collection page, and *should*
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
228 have a `last` field which is similar.
|
||||
229 have a `last` field which is similar.
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
229
|
||||
230
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
230 The pages of collections *should* be collection pages; the pages of
|
||||
231 The pages of collections *should* be collection pages; the pages of
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
231 ordered collections *should* be ordered collection pages."
|
||||
232 ordered collections *should* be ordered collection pages."
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
232 ([x]
|
||||
233 ([x]
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 2 forms covered">
|
||||
233 (collection-faults
|
||||
<span class="covered" title="2 out of 2 forms covered">
|
||||
234 (collection-faults
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 1 forms covered">
|
||||
234 x
|
||||
<span class="covered" title="1 out of 1 forms covered">
|
||||
235 x
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 2 forms covered">
|
||||
235 (first
|
||||
<span class="covered" title="2 out of 2 forms covered">
|
||||
236 (first
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 3 forms covered">
|
||||
236 (remove nil?
|
||||
<span class="covered" title="3 out of 3 forms covered">
|
||||
237 (remove nil?
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 10 forms covered">
|
||||
237 (map #(when (has-type? x %) %)
|
||||
<span class="covered" title="10 out of 10 forms covered">
|
||||
238 (map #(when (has-type? x %) %)
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 5 forms covered">
|
||||
238 ["Collection"
|
||||
<span class="covered" title="5 out of 5 forms covered">
|
||||
239 ["Collection"
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
239 "OrderedCollection"
|
||||
240 "OrderedCollection"
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
240 "CollectionPage"
|
||||
241 "CollectionPage"
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
241 "OrderedCollectionPage"])))))
|
||||
242 "OrderedCollectionPage"])))))
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
242 ([x type]
|
||||
243 ([x type]
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
243 ;; (log/info "collection-faults called with argumens " x ", " type)
|
||||
244 ;; (log/info "collection-faults called with argumens " x ", " type)
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 3 forms covered">
|
||||
244 (case type
|
||||
<span class="covered" title="3 out of 3 forms covered">
|
||||
245 (case type
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 8 forms covered">
|
||||
245 ("Collection" "OrderedCollection") (any-or-faults
|
||||
<span class="partial" title="6 out of 8 forms covered">
|
||||
246 ("Collection" "OrderedCollection") (any-or-faults
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 12 forms covered">
|
||||
246 (list (simple-collection-faults x type)
|
||||
<span class="covered" title="12 out of 12 forms covered">
|
||||
247 (list (simple-collection-faults x type)
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 8 forms covered">
|
||||
247 (paged-collection-faults x type))
|
||||
<span class="covered" title="8 out of 8 forms covered">
|
||||
248 (paged-collection-faults x type))
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
248 :must
|
||||
249 :must
|
||||
</span><br/>
|
||||
<span class="not-tracked" title="0 out of 0 forms covered">
|
||||
249 :no-items)
|
||||
250 :no-items)
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 8 forms covered">
|
||||
250 ("CollectionPage" "OrderedCollectionPage") (collection-page-faults x type)
|
||||
<span class="partial" title="4 out of 8 forms covered">
|
||||
251 ("CollectionPage" "OrderedCollectionPage") (collection-page-faults x type)
|
||||
</span><br/>
|
||||
<span class="not-covered" title="0 out of 6 forms covered">
|
||||
251 (list (make-fault-object :critical :expected-collection)))))
|
||||
252 (list (make-fault-object :critical :expected-collection)))))
|
||||
</span><br/>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue