Home
last modified time | relevance | path

Searched full:foo (Results 1 – 25 of 9058) sorted by relevance

12345678910>>...363

/external/one-true-awk/testdir/
Dlilly.out2 ### BEGIN{foo=6;print foo/2}:
5 ### BEGIN{foo=10;foo/=2;print foo}:
9 foo=bar
10 foo==bar
11 foo+=bar
12 foo-=bar
13 foo*=bar
14 foo/=bar
15 foo^=bar
16 foo%=bar
[all …]
/external/python/cpython2/Lib/test/
Dtest_shlex.py16 foo bar|foo|bar|
17 foo bar|foo|bar|
18 foo bar |foo|bar|
19 foo bar bla fasel|foo|bar|bla|fasel|
24 foo \x bar|foo|\|x|bar|
25 foo \ x bar|foo|\|x|bar|
26 foo \ bar|foo|\|bar|
27 foo "bar" bla|foo|"bar"|bla|
28 "foo" "bar" "bla"|"foo"|"bar"|"bla"|
29 "foo" bar "bla"|"foo"|bar|"bla"|
[all …]
Dtest_module.py12 foo = ModuleType.__new__(ModuleType)
13 self.assertTrue(foo.__dict__ is None)
14 self.assertRaises(SystemError, dir, foo)
16 s = foo.__name__
20 self.assertEqual(foo.__doc__, ModuleType.__doc__)
24 foo = ModuleType("foo")
25 self.assertEqual(foo.__name__, "foo")
26 self.assertEqual(foo.__doc__, None)
27 self.assertEqual(foo.__dict__, {"__name__": "foo", "__doc__": None})
31 foo = ModuleType("foo", "foodoc")
[all …]
Dtest_copy.py27 def __init__(self, foo): argument
28 self.foo = foo
30 return C(self.foo)
34 self.assertEqual(y.foo, x.foo)
38 def __new__(cls, foo): argument
40 obj.foo = foo
43 return (C, (obj.foo,))
111 x = {"foo": 1, "bar": 2}
148 def __init__(self, foo): argument
149 self.foo = foo
[all …]
/external/python/cpython3/Lib/test/
Dtest_shlex.py12 foo bar|foo|bar|
13 foo bar|foo|bar|
14 foo bar |foo|bar|
15 foo bar bla fasel|foo|bar|bla|fasel|
20 foo \x bar|foo|\|x|bar|
21 foo \ x bar|foo|\|x|bar|
22 foo \ bar|foo|\|bar|
23 foo "bar" bla|foo|"bar"|bla|
24 "foo" "bar" "bla"|"foo"|"bar"|"bla"|
25 "foo" bar "bla"|"foo"|bar|"bla"|
[all …]
Dtest_module.py24 foo = ModuleType.__new__(ModuleType)
25 self.assertTrue(foo.__dict__ is None)
26 self.assertRaises(TypeError, dir, foo)
28 s = foo.__name__
32 self.assertEqual(foo.__doc__, ModuleType.__doc__)
37 foo = ModuleType.__new__(ModuleType)
40 getattr, foo, "not_here")
45 foo = ModuleType("foo")
47 AttributeError, "module 'foo' has no attribute 'not_here'",
48 getattr, foo, "not_here")
[all …]
Dtest_copy.py33 def __init__(self, foo): argument
34 self.foo = foo
36 return C(self.foo)
40 self.assertEqual(y.foo, x.foo)
44 def __new__(cls, foo): argument
46 obj.foo = foo
49 return (C, (obj.foo,))
126 x = {"foo": 1, "bar": 2}
163 def __init__(self, foo): argument
164 self.foo = foo
[all …]
/external/grpc-grpc/test/core/gprpp/
Dref_counted_ptr_test.cc33 class Foo : public RefCounted<Foo> { class
35 Foo() : value_(0) {} in Foo() function in grpc_core::testing::__anon0f0a49660111::Foo
37 explicit Foo(int value) : value_(value) {} in Foo() function in grpc_core::testing::__anon0f0a49660111::Foo
45 TEST(RefCountedPtr, DefaultConstructor) { RefCountedPtr<Foo> foo; } in TEST() local
48 RefCountedPtr<Foo> foo(nullptr); in TEST() local
51 TEST(RefCountedPtr, ExplicitConstructor) { RefCountedPtr<Foo> foo(New<Foo>()); } in TEST() local
54 RefCountedPtr<Foo> foo(New<Foo>()); in TEST() local
55 RefCountedPtr<Foo> foo2(std::move(foo)); in TEST()
56 EXPECT_EQ(nullptr, foo.get()); in TEST()
61 RefCountedPtr<Foo> foo(New<Foo>()); in TEST() local
[all …]
/external/python/cpython3/Lib/test/test_importlib/
Dtest_namespace_pkgs.py78 import foo.one
79 self.assertEqual(foo.one.attr, 'portion1 foo one')
83 import foo.two
86 import foo.one
89 self.assertEqual(foo.__spec__.loader.module_repr(foo),
90 "<module 'foo' (namespace)>")
97 # Make sure only 'foo.one' can be imported
98 import foo.one
99 self.assertEqual(foo.one.attr, 'portion1 foo one')
102 import foo.two
[all …]
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DJimfsPathTest.java45 assertPathEquals("/foo", "/foo"); in testPathParsing()
46 assertPathEquals("/foo", "/", "foo"); in testPathParsing()
47 assertPathEquals("/foo/bar", "/foo/bar"); in testPathParsing()
48 assertPathEquals("/foo/bar", "/", "foo", "bar"); in testPathParsing()
49 assertPathEquals("/foo/bar", "/foo", "bar"); in testPathParsing()
50 assertPathEquals("/foo/bar", "/", "foo/bar"); in testPathParsing()
51 assertPathEquals("foo/bar/baz", "foo/bar/baz"); in testPathParsing()
52 assertPathEquals("foo/bar/baz", "foo", "bar", "baz"); in testPathParsing()
53 assertPathEquals("foo/bar/baz", "foo/bar", "baz"); in testPathParsing()
54 assertPathEquals("foo/bar/baz", "foo", "bar/baz"); in testPathParsing()
[all …]
DJimfsWindowsLikeFileSystemTest.java73 assertThatPath("foo").isRelative().and().hasNameComponents("foo"); in testPaths()
74 assertThatPath("foo\\bar").isRelative().and().hasNameComponents("foo", "bar"); in testPaths()
75 assertThatPath("C:\\foo\\bar\\baz") in testPaths()
80 .hasNameComponents("foo", "bar", "baz"); in testPaths()
86 assertThatPath("foo").isEqualTo(path("FOO")); in testPaths_equalityIsCaseInsensitive()
104 assertThatPath("foo/bar") in testPaths_withSlash()
107 .hasNameComponents("foo", "bar") in testPaths_withSlash()
109 .isEqualTo(path("foo\\bar")); in testPaths_withSlash()
110 assertThatPath("C:/foo/bar/baz") in testPaths_withSlash()
115 .hasNameComponents("foo", "bar", "baz") in testPaths_withSlash()
[all …]
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestpatch.py46 class Foo(object): class
50 foo = 'bar' variable in Foo
61 foo_name = '%s.Foo' % __name__
64 def function(a, b=Foo): pass
408 class Foo(object): class
413 @patch.object(Foo, 'woot', staticmethod(lambda: sentinel.Patched))
415 self.assertEqual(Foo.woot(), sentinel.Patched)
418 self.assertEqual(Foo.woot(), sentinel.Static)
422 foo = sentinel.Foo
423 @patch.object(sentinel, 'Foo', 'Foo')
[all …]
/external/bazel-skylib/tests/
Dpaths_tests.bzl27 asserts.equals(env, "bar", paths.basename("foo///bar"))
30 asserts.equals(env, "foo", paths.basename("foo"))
31 asserts.equals(env, "foo", paths.basename("/foo"))
32 asserts.equals(env, "foo", paths.basename("bar/foo"))
33 asserts.equals(env, "foo", paths.basename("/bar/foo"))
37 asserts.equals(env, "", paths.basename("foo/"))
38 asserts.equals(env, "", paths.basename("/foo/"))
51 asserts.equals(env, "foo", paths.dirname("foo///bar"))
54 asserts.equals(env, "", paths.dirname("foo"))
55 asserts.equals(env, "/", paths.dirname("/foo"))
[all …]
/external/llvm/test/MC/SystemZ/
Dtokens.s5 #CHECK: foo 100, 200
7 #CHECK: foo 100(, 200
9 #CHECK: foo 100(200), 300
11 #CHECK: foo 100(200,), 300
13 #CHECK: foo 100(200,%r0), 300
15 #CHECK: foo 100(200,%r1), 300
17 #CHECK: foo 100(%a0), 200
19 #CHECK: foo 100(%r0), 200
21 #CHECK: foo 100(%v1,%r0), 200
23 #CHECK: foo 100(%v0,%r1), 200
[all …]
/external/libchrome/base/files/
Dfile_path_unittest.cc467 { FPL("//foo/bar/baz/"), FPL("|//|foo|bar|baz")}, in TEST_F()
469 { FPL("/foo//bar//baz/"), FPL("|/|foo|bar|baz")}, in TEST_F()
470 { FPL("/foo/bar/baz/"), FPL("|/|foo|bar|baz")}, in TEST_F()
471 { FPL("/foo/bar/baz//"), FPL("|/|foo|bar|baz")}, in TEST_F()
472 { FPL("/foo/bar/baz///"), FPL("|/|foo|bar|baz")}, in TEST_F()
473 { FPL("/foo/bar/baz"), FPL("|/|foo|bar|baz")}, in TEST_F()
474 { FPL("/foo/bar.bot/baz.txt"), FPL("|/|foo|bar.bot|baz.txt")}, in TEST_F()
475 { FPL("//foo//bar/baz"), FPL("|//|foo|bar|baz")}, in TEST_F()
477 { FPL("foo"), FPL("|foo")}, in TEST_F()
480 { FPL("e:/foo"), FPL("|e:|/|foo")}, in TEST_F()
[all …]
/external/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/
Dpath.decompose.pass.cpp82 , {"foo", {"foo"}, "", "", "", "foo", "", "foo"}
84 , {"/foo", {"/", "foo"}, "/", "", "/", "foo", "/", "foo"}
85 , {"foo/", {"foo", ""}, "", "", "", "foo/", "foo", ""}
86 , {"/foo/", {"/", "foo", ""}, "/", "", "/", "foo/", "/foo", ""}
87 , {"foo/bar", {"foo","bar"}, "", "", "", "foo/bar", "foo", "bar"}
88 , {"/foo//bar", {"/","foo","bar"}, "/", "", "/", "foo/bar", "/foo", "bar"}
90 , {"//net/foo", {"/", "net", "foo"}, "/", "", "/", "net/foo", "/net", "foo"}
91 , {"///foo///", {"/", "foo", ""}, "/", "", "/", "foo///", "///foo", ""}
92 , {"///foo///bar", {"/", "foo", "bar"}, "/", "", "/", "foo///bar", "///foo", "bar"}
97 , {"foo/.", {"foo", "."}, "", "", "", "foo/.", "foo", "."}
[all …]
/external/dagger2/javatests/dagger/internal/codegen/validation/
DPackageNameCompressorTest.java32 String input = "Something is wrong with foo.bar.baz.Foo class!"; in testSimple()
33 String expectedOutput = "Something is wrong with Foo class!" in testSimple()
35 + "Foo: foo.bar.baz.Foo\n" in testSimple()
42 String input = "Something is wrong with foo.bar.baz.Foo and foo.bar.qux.Foo class!"; in testSameSimpleNames()
43 String expectedOutput = "Something is wrong with baz.Foo and qux.Foo class!" in testSameSimpleNames()
45 + "baz.Foo: foo.bar.baz.Foo\n" in testSameSimpleNames()
46 + "qux.Foo: foo.bar.qux.Foo\n" in testSameSimpleNames()
53 String input = "Something is wrong with foo.bar.baz.Foo.provideFoo()!"; in testMethodNames()
54 String expectedOutput = "Something is wrong with Foo.provideFoo()!" in testMethodNames()
56 + "Foo: foo.bar.baz.Foo\n" in testMethodNames()
[all …]
/external/llvm/test/MC/Mips/
Drelocation.s28 .short foo // RELOC: R_MIPS_16 foo
32 baz: .long foo // RELOC: R_MIPS_32 foo
36 // ?????: R_MIPS_REL32 foo
38 jal foo // RELOC: R_MIPS_26 foo
39 // ENCBE: jal foo # encoding: [0b000011AA,A,A,A]
40 // ENCLE: jal foo # encoding: [A,A,A,0b000011AA]
41 … // FIXUP: # fixup A - offset: 0, value: foo, kind: fixup_Mips_26
50 addiu $2, $3, %hi(foo) // RELOC: R_MIPS_HI16 foo
51 … // ENCBE: addiu $2, $3, %hi(foo) # encoding: [0x24,0x62,A,A]
52 … // ENCLE: addiu $2, $3, %hi(foo) # encoding: [A,A,0x62,0x24]
[all …]
/external/libxml2/test/relaxng/OASIS/
Dspectest.xml22 <element name="foo">
26 <element name="foo">
36 <element xmlns="http://relaxng.org/ns/structure/1.0" name="foo">
47 <element xmlns="http://relaxng.org/ns/structure/1.0" name="foo">
48 <name>foo</name>
56 <element xmlns="http://relaxng.org/ns/structure/1.0" name="foo">
69 <name>foo</name>
85 <name>foo</name>
98 <element xmlns="http://relaxng.org/ns/structure/1.0" name="foo">
101 <value>foo</value>
[all …]
/external/okhttp/okhttp-tests/src/test/resources/
Dweb-platform-test-urltestdata.txt4 http://example\t.\norg http://example.org/foo/bar s:http h:example.org p:/
5 http://user:pass@foo:21/bar;par?b#c s:http u:user pass:pass h:foo port:21 p:/bar;par q:?b f:#c
6 http:foo.com s:http h:example.org p:/foo/foo.com
7 \t\s\s\s:foo.com\s\s\s\n s:http h:example.org p:/foo/:foo.com
8 \sfoo.com\s\s s:http h:example.org p:/foo/foo.com
21 s:http h:example.org p:/foo/bar
22 \s\s\t s:http h:example.org p:/foo/bar
23 :foo.com/ s:http h:example.org p:/foo/:foo.com/
24 :foo.com\\ s:http h:example.org p:/foo/:foo.com/
25 : s:http h:example.org p:/foo/:
[all …]
/external/google-java-format/core/src/test/resources/com/google/googlejavaformat/java/testdata/
DB20128588.output1 @Foo
6 @Foo
11 @Foo
16 @Foo
21 @Foo
26 @Foo @Bar @Baz static Object field;
28 static @Foo @Bar @Baz Object field;
30 @Foo @Bar @Baz Object field;
32 @Foo(xs = 42)
38 @Foo
[all …]
DB20128588.input1 @Foo @Bar @Baz package edu.oswego.cs.dl.util.concurrent;
3 @Foo @Bar @Baz class Test {
5 @Foo @Bar @Baz Object f() {
8 @Foo @Bar @Baz public Object f() {
11 @Foo @Bar @Baz void f() {
14 @Foo @Bar @Baz static Object field;
16 static @Foo @Bar @Baz Object field;
18 @Foo @Bar @Baz Object field;
20 @Foo(xs=42) @Bar @Baz Object field;
23 @Foo @Bar @Baz final Object var;
[all …]
/external/guice/core/test/com/google/inject/
DNullableInjectionPointTest.java55 " but " + FooField.class.getName() + ".foo", in testInjectNullIntoNotNullableField()
62 assertNull(createInjector().getInstance(Foo.class)); in testGetInstanceOfNull()
67 assertNull(nfc.foo); in testInjectNullIntoNullableConstructor()
72 assertNull(nfm.foo); in testInjectNullIntoNullableMethod()
77 assertNull(nff.foo); in testInjectNullIntoNullableField()
83 assertNull(nfc.foo); in testInjectNullIntoCustomNullableConstructor()
88 assertNull(nfm.foo); in testInjectNullIntoCustomNullableMethod()
93 assertNull(nff.foo); in testInjectNullIntoCustomNullableField()
101 bind(Foo.class).toProvider(Providers.<Foo>of(null)); in createInjector()
113 bind(Foo.class).toInstance(null);
[all …]
/external/clang/test/Modules/
Dobjc-categories.m15 @interface Foo(Source) interface in Source
19 void test(Foo *foo, LeftFoo *leftFoo) {
20 [foo source];
21 [foo bottom];
22 [foo left];
23 [foo right1];
24 [foo right2];
25 [foo top];
26 [foo top2];
27 [foo top3];
[all …]
/external/protobuf/src/google/protobuf/compiler/
Dcommand_line_interface_unittest.cc510 CreateTempFile("foo.proto", in TEST_F()
512 "message Foo {}\n"); in TEST_F()
515 "--proto_path=$tmpdir foo.proto"); in TEST_F()
518 ExpectGenerated("test_generator", "", "foo.proto", "Foo"); in TEST_F()
525 file_descriptor_proto->set_name("foo.proto"); in TEST_F()
526 file_descriptor_proto->add_message_type()->set_name("Foo"); in TEST_F()
528 WriteDescriptorSet("foo.bin", &file_descriptor_set); in TEST_F()
531 "--descriptor_set_in=$tmpdir/foo.bin foo.proto"); in TEST_F()
534 ExpectGenerated("test_generator", "", "foo.proto", "Foo"); in TEST_F()
540 CreateTempFile("foo.proto", in TEST_F()
[all …]

12345678910>>...363