1.1 --- a/encoders.py Fri Nov 25 18:36:10 2016 +0100
1.2 +++ b/encoders.py Fri Nov 25 18:36:45 2016 +0100
1.3 @@ -111,30 +111,17 @@
1.4
1.5 return map(lambda ref: ref.get_kind(), all_types)
1.6
1.7 -def test_for_kind(prefix, kind):
1.8 -
1.9 - "Return a test condition identifier featuring 'prefix' and 'kind'."
1.10 +def test_label_for_kind(kind):
1.11
1.12 - return "%s-%s" % (prefix, kind == "<instance>" and "instance" or "type")
1.13 + "Return the label used for 'kind' in test details."
1.14
1.15 -def test_for_kinds(prefix, all_kinds):
1.16 + return kind == "<instance>" and "instance" or "type"
1.17
1.18 - """
1.19 - Return an identifier describing test conditions incorporating the given
1.20 - 'prefix' and involving 'all_kinds', being a collection of object kinds.
1.21 - """
1.22 -
1.23 - return test_for_kind(prefix, first(all_kinds))
1.24 +def test_label_for_type(ref):
1.25
1.26 -def test_for_type(prefix, ref):
1.27 + "Return the label used for 'ref' in test details."
1.28
1.29 - """
1.30 - Return an identifier describing a test condition incorporating the given
1.31 - 'prefix' and involving 'ref', being a program type reference. The kind of
1.32 - the reference is employed in the identifier.
1.33 - """
1.34 -
1.35 - return test_for_kind(prefix, ref.get_kind())
1.36 + return test_label_for_kind(ref.get_kind())
1.37
1.38
1.39