# Mutations the riksarkivet tests must catch (format: see read/mutants.txt).
gwt_riksarkivet.py | PACE = {'start': 3.0, 'floor': 2.0, 'ceil': 120.0} | PACE = {'start': 3.0, 'floor': 0.5, 'ceil': 120.0} | Riksarkivet is never asked faster than one request every 2 s
gwt_riksarkivet.py | return 'unknown'    # the result container renamed: a STOP | return 'none' | a Riksarkivet answer whose container changed is unknown, a STOP, never "none"
gwt_riksarkivet.py | if n == 0 and not items: | if not items: | a count above zero with no rows is unknown, never "none"
gwt_riksarkivet.py | not _count(doc.get('totalHits')) or | False or | an answer with no count is unknown, never "none"
gwt_riksarkivet.py | return isinstance(n, int) and not isinstance(n, bool) | return isinstance(n, int) | a count that is true or false is not a count
gwt_riksarkivet.py | if not items and offset >= n: | if False: | a Riksarkivet page past the last row is the end of the results (exit 2), never a STOP
gwt_riksarkivet.py | i.get('id') and isinstance(i.get('metadata'), dict) | i.get('id') | a row whose metadata is no longer an object is unknown, a STOP
gwt_riksarkivet.py |         p.append(('only_digitised_materials', 'true')) |         pass | a search asks for scanned volumes only unless --all
gwt_riksarkivet.py | n = max(1, min(int(count), 100)) | n = max(1, int(count)) | a page is never more than 100 rows: every answer carries the large facets too
gwt_riksarkivet.py | p += [('offset', (max(1, int(page)) - 1) * n), ('limit', n)] | p += [('offset', 0), ('limit', n)] | --page asks for the rows of that page, not the first ones again
gwt_riksarkivet.py | for k in ('totalHits', 'hits', 'offset', 'items') if k in doc} | for k in doc} | the evidence file keeps the rows, never the facets that are most of every answer
gwt_riksarkivet.py | return (ys[0], ys[-1] if len(ys) > 1 else None) if ys else (None, None) | return (ys[0], ys[-1]) if ys else (None, None) | an open-ended volume ("1829 - ") has no last year, not its first year twice
gwt_riksarkivet.py | for m in c['iiif_manifests'] or ['']: | for m in c['iiif_manifests'][:1] or ['']: | every manifest of a volume gets its item line, not only the first
gwt_riksarkivet.py |     if not a.query.strip(): |     if False: | an empty query asks nothing
gwt_riksarkivet.py | images = [images] if isinstance(images, str) else | images = | a single manifest link is one manifest, not a list of letters
