Home
last modified time | relevance | path

Searched refs:HasLength (Results 1 – 25 of 181) sorted by relevance

12345678

/dports/devel/p5-Declare-Constraints-Simple/Declare-Constraints-Simple-0.03/t/
H A D01-constraints-scalar.t15 [HasLength, undef, 0, 'HasLength undef'],
16 [HasLength, "", 0, 'HasLength empty string'],
17 [HasLength, "n", 1, 'HasLength one char'],
18 [HasLength(2), "n", 0, 'HasLength(2) one char'],
19 [HasLength(2), "nm", 1, 'HasLength(2) two chars'],
20 [HasLength(2,3), "nm", 1, 'HasLength(2,3) two chars'],
21 [HasLength(2,3), "nmo", 1, 'HasLength(2,3) three chars'],
22 [HasLength(2,3), "nmop", 0, 'HasLength(2,3) four chars'],
H A D06-constraints-array.t24 [OnArrayElements(0, IsInt, 1, HasLength), [1,'2'], 1, 'OnArrayElements two true'],
25 … [OnArrayElements(0, IsInt, 1, HasLength), ['f'], 0, 'OnArrayElements only one and false'],
26 … [OnArrayElements(0, IsInt, 1, HasLength), [], 1, 'OnArrayElements true on empty list'],
27 [OnArrayElements(0, IsInt, 1, HasLength), [2], 1, 'OnArrayElements one true'],
28 [OnArrayElements(0, IsInt, 1, HasLength), [undef], 0, 'OnArrayElements undef value'],
29 [OnArrayElements(0, IsInt, 1, HasLength), undef, 0, 'OnArrayElements undef'],
30 [OnArrayElements(0, IsInt, 1, HasLength), "foo", 0, 'OnArrayElements string'],
/dports/net/syncthing/syncthing-1.18.1/syncthing/vendor/github.com/maxbrunsfeld/counterfeiter/v6/generator/
H A Dfunction_template.go32 {{- if .Function.Returns.HasLength}}
57 {{if .Function.Returns.HasLength}}ret, specificReturn := fake.returnsOnCall[len(fake.argsForCall)]
64 {{- if .Function.Returns.HasLength}}
67 …fake.recordInvocation("{{.TargetName}}", []interface{}{ {{- if .Function.Params.HasLength}}{{.Func…
70 …{{if .Function.Returns.HasLength}}return stub({{.Function.Params.AsNamedArgsForInvocation}}){{else…
72 {{- if .Function.Returns.HasLength}}
92 {{if .Function.Params.HasLength -}}
100 {{if .Function.Returns.HasLength -}}
H A Dinterface_template.go34 {{- if .Returns.HasLength}}
61 {{- if .Returns.HasLength}}
70 {{- if .Returns.HasLength}}
73 …fake.recordInvocation("{{.Name}}", []interface{}{ {{- if .Params.HasLength}}{{.Params.AsNamedArgs}…
76 {{- if .Returns.HasLength}}
80 {{- if .Returns.HasLength}}
100 {{if .Params.HasLength -}}
109 {{if .Returns.HasLength -}}
/dports/net/bosh-cli/bosh-cli-5.5.0/vendor/github.com/maxbrunsfeld/counterfeiter/generator/
H A Dfunction_template.go31 {{- if .Function.Returns.HasLength}}
56 {{if .Function.Returns.HasLength}}ret, specificReturn := fake.returnsOnCall[len(fake.argsForCall)]
62 …fake.recordInvocation("{{.TargetName}}", []interface{}{ {{- if .Function.Params.HasLength}}{{.Func…
65 …{{if .Function.Returns.HasLength}}return fake.Stub({{.Function.Params.AsNamedArgsForInvocation}}){…
67 {{- if .Function.Returns.HasLength}}
81 {{if .Function.Params.HasLength -}}
89 {{if .Function.Returns.HasLength -}}
H A Dinterface_template.go32 {{- if .Returns.HasLength}}
59 {{- if .Returns.HasLength}}
67 …fake.recordInvocation("{{.Name}}", []interface{}{ {{- if .Params.HasLength}}{{.Params.AsNamedArgs}…
70 {{- if .Returns.HasLength}}
74 {{- if .Returns.HasLength}}
89 {{if .Params.HasLength -}}
98 {{if .Returns.HasLength -}}
/dports/net/concourse-fly/concourse-6.7.1/vendor/github.com/maxbrunsfeld/counterfeiter/v6/generator/
H A Dfunction_template.go32 {{- if .Function.Returns.HasLength}}
57 {{if .Function.Returns.HasLength}}ret, specificReturn := fake.returnsOnCall[len(fake.argsForCall)]
63 …fake.recordInvocation("{{.TargetName}}", []interface{}{ {{- if .Function.Params.HasLength}}{{.Func…
66 …{{if .Function.Returns.HasLength}}return fake.Stub({{.Function.Params.AsNamedArgsForInvocation}}){…
68 {{- if .Function.Returns.HasLength}}
88 {{if .Function.Params.HasLength -}}
96 {{if .Function.Returns.HasLength -}}
H A Dinterface_template.go34 {{- if .Returns.HasLength}}
61 {{- if .Returns.HasLength}}
69 …fake.recordInvocation("{{.Name}}", []interface{}{ {{- if .Params.HasLength}}{{.Params.AsNamedArgs}…
72 {{- if .Returns.HasLength}}
76 {{- if .Returns.HasLength}}
97 {{if .Params.HasLength -}}
106 {{if .Returns.HasLength -}}
/dports/misc/concourse/concourse-6.7.2/vendor/github.com/maxbrunsfeld/counterfeiter/v6/generator/
H A Dfunction_template.go32 {{- if .Function.Returns.HasLength}}
57 {{if .Function.Returns.HasLength}}ret, specificReturn := fake.returnsOnCall[len(fake.argsForCall)]
63 …fake.recordInvocation("{{.TargetName}}", []interface{}{ {{- if .Function.Params.HasLength}}{{.Func…
66 …{{if .Function.Returns.HasLength}}return fake.Stub({{.Function.Params.AsNamedArgsForInvocation}}){…
68 {{- if .Function.Returns.HasLength}}
88 {{if .Function.Params.HasLength -}}
96 {{if .Function.Returns.HasLength -}}
H A Dinterface_template.go34 {{- if .Returns.HasLength}}
61 {{- if .Returns.HasLength}}
69 …fake.recordInvocation("{{.Name}}", []interface{}{ {{- if .Params.HasLength}}{{.Params.AsNamedArgs}…
72 {{- if .Returns.HasLength}}
76 {{- if .Returns.HasLength}}
97 {{if .Params.HasLength -}}
106 {{if .Returns.HasLength -}}
/dports/devel/py-keystonemiddleware/keystonemiddleware-9.3.0/keystonemiddleware/tests/unit/
H A Dtest_opts.py27 self.assertThat(result_of_old_opts, matchers.HasLength(1))
75 self.assertThat(opt_names, matchers.HasLength(len(expected_opt_names)))
81 self.assertThat(result, matchers.HasLength(1))
120 self.assertThat(opt_names, matchers.HasLength(len(expected_opt_names)))
/dports/devel/py-keystonemiddleware/keystonemiddleware-9.3.0/keystonemiddleware/tests/unit/auth_token/
H A Dtest_connection_pool.py44 self.assertThat(self.connection_pool.queue, matchers.HasLength(0))
48 self.assertThat(self.connection_pool.queue, matchers.HasLength(1))
58 self.assertThat(self.connection_pool.queue, matchers.HasLength(2))
65 self.assertThat(self.connection_pool.queue, matchers.HasLength(1))
78 matchers.HasLength(0))
/dports/devel/py-oslo.cache/oslo.cache-2.5.0/oslo_cache/tests/unit/
H A Dtest_connection_pool.py59 self.assertThat(self.connection_pool.queue, matchers.HasLength(0))
63 self.assertThat(self.connection_pool.queue, matchers.HasLength(1))
73 self.assertThat(self.connection_pool.queue, matchers.HasLength(2))
80 self.assertThat(self.connection_pool.queue, matchers.HasLength(1))
93 matchers.HasLength(0))
/dports/textproc/py-pyhamcrest/PyHamcrest-2.0.2/src/hamcrest/library/object/
H A Dhaslength.py15 class HasLength(BaseMatcher[Sized]): class
25 super(HasLength, self).describe_mismatch(item, mismatch_description)
52 return HasLength(wrap_matcher(match))
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.Http/tests/UnitTests/Headers/
H A DContentRangeHeaderValueTest.cs25 Assert.True(range.HasLength); in Ctor_LengthOnlyOverloadValidValues_ValuesCorrectlySet()
46 Assert.False(range.HasLength); in Ctor_FromAndToOverloadValidValues_ValuesCorrectlySet()
69 Assert.True(range.HasLength); in Ctor_FromToAndLengthOverloadValidValues_ValuesCorrectlySet()
172 Assert.True(result.HasLength); in GetContentRangeLength_DifferentValidScenarios_AllReturnNonZero()
180 Assert.False(result.HasLength); in GetContentRangeLength_DifferentValidScenarios_AllReturnNonZero()
190 Assert.True(result.HasLength); in GetContentRangeLength_DifferentValidScenarios_AllReturnNonZero()
200 Assert.False(result.HasLength); in GetContentRangeLength_DifferentValidScenarios_AllReturnNonZero()
/dports/devel/py-glance-store/glance_store-2.7.0/glance_store/tests/unit/
H A Dtest_opts.py30 self.assertThat(opt_list, matchers.HasLength(len(expected_opt_groups)))
33 self.assertThat(groups, matchers.HasLength(len(expected_opt_groups)))
40 self.assertThat(opt_names, matchers.HasLength(len(expected_opt_names)))
/dports/math/ogdf/OGDF/test/include/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/
H A Dhaslengthconstraint.h33 inline HasLengthConstraint<ExpectedType> HasLength(const ExpectedType& expected) in HasLength() function
38 inline HasLengthConstraint<std::string> HasLength(const char* expected) in HasLength() function
/dports/devel/py-python-subunit/python-subunit-1.3.0/python/subunit/tests/
H A Dtest_test_protocol2.py30 from testtools.matchers import Contains, HasLength
111 self.assertThat(output.getvalue(), HasLength(10))
117 self.assertThat(output.getvalue(), HasLength(63))
123 self.assertThat(output.getvalue(), HasLength(65))
129 self.assertThat(output.getvalue(), HasLength(16383))
135 self.assertThat(output.getvalue(), HasLength(16385))
141 self.assertThat(output.getvalue(), HasLength(4194303))
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/wiredtiger/test/3rdparty/python-subunit-0.0.16/python/subunit/tests/
H A Dtest_test_protocol2.py21 from testtools.matchers import Contains, HasLength
102 self.assertThat(output.getvalue(), HasLength(10))
108 self.assertThat(output.getvalue(), HasLength(63))
114 self.assertThat(output.getvalue(), HasLength(65))
120 self.assertThat(output.getvalue(), HasLength(16383))
126 self.assertThat(output.getvalue(), HasLength(16385))
132 self.assertThat(output.getvalue(), HasLength(4194303))
/dports/devel/py-testtools/testtools-2.5.0/testtools/tests/matchers/
H A Dtest_basic.py21 HasLength,
407 matches_matcher = HasLength(2)
412 ("HasLength(2)", HasLength(2)),
416 ("len([]) != 1", [], HasLength(1)),
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/wiredtiger/test/3rdparty/testtools-0.9.34/testtools/tests/matchers/
H A Dtest_basic.py22 HasLength,
381 matches_matcher = HasLength(2)
386 ("HasLength(2)", HasLength(2)),
390 ("len([]) != 1", [], HasLength(1)),
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.Http/src/System/Net/Http/Headers/
H A DContentRangeHeaderValue.cs44 public bool HasLength // e.g. "Content-Range: bytes 12-34/*" property in System.Net.Http.Headers.ContentRangeHeaderValue
144 if (HasLength) in GetHashCode()
170 if (HasLength) in ToString()
/dports/lang/mono/mono-5.10.1.57/mcs/class/System.Net.Http/Test/System.Net.Http.Headers/
H A DContentRangeHeaderValueTest.cs145 Assert.IsTrue (value.HasLength, "#2"); in Properties()
154 Assert.IsTrue (value.HasLength, "#12"); in Properties()
/dports/devel/py-oslo.service/oslo.service-2.7.0/oslo_service/tests/
H A Dtest_periodic.py217 self.assertThat(m._periodic_tasks, matchers.HasLength(2))
229 self.assertThat(m._periodic_tasks, matchers.HasLength(3))
247 self.assertThat(m._periodic_tasks, matchers.HasLength(1))
367 self.assertThat(m._periodic_tasks, matchers.HasLength(1))
/dports/net/py-python-keystoneclient/python-keystoneclient-4.3.0/keystoneclient/tests/unit/
H A Dtest_utils.py121 self.assertThat(token_id_default, matchers.HasLength(32))
130 self.assertThat(token_id, matchers.HasLength(64))

12345678