Home
last modified time | relevance | path

Searched refs:Foo (Results 1 – 25 of 511) sorted by relevance

12345678910>>...21

/openbsd/src/gnu/usr.bin/perl/cpan/CPAN-Meta-Requirements/t/
Dbasic.t25 $req->add_minimum('Foo::Bar' => 10);
26 $req->add_minimum('Foo::Bar' => 0);
27 $req->add_minimum('Foo::Bar' => 2);
29 $req->add_minimum('Foo::Baz' => version->declare('v1.2.3'));
31 $req->add_minimum('Foo::Undef' => undef);
36 'Foo::Bar' => 10,
37 'Foo::Baz' => 'v1.2.3',
38 'Foo::Undef' => 0,
48 $req->add_maximum(Foo => 1);
49 is_deeply($req->as_string_hash, { Foo => '<= 1' }, "max only");
[all …]
Dstrings.t72 $req->add_string_requirement('Foo::Bar', '== 1.3');
73 ok($req->accepts_module('Foo::Bar' => '1.3'), 'exact version (==)');
74 ok(!$req->accepts_module('Foo::Bar' => '1.2'), 'lower version (==)');
75 ok(!$req->accepts_module('Foo::Bar' => '1.4'), 'higher version (==)');
78 $req->add_string_requirement('Foo::Baz', '!= 1.3');
79 ok(!$req->accepts_module('Foo::Baz' => '1.3'), 'exact version (!=)');
80 ok($req->accepts_module('Foo::Baz' => '1.2'), 'lower version (!=)');
81 ok($req->accepts_module('Foo::Baz' => '1.4'), 'higher version (!=)');
84 $req->add_string_requirement('Foo::Gorch', '>= 1.3');
85 ok($req->accepts_module('Foo::Gorch' => '1.3'), 'exact version (>=)');
[all …]
Dfinalize.t25 $req->add_minimum('Foo::Bar' => 10);
26 $req->add_minimum('Foo::Bar' => 0);
27 $req->add_minimum('Foo::Bar' => 2);
29 $req->add_minimum('Foo::Baz' => version->declare('v1.2.3'));
31 $req->add_minimum('Foo::Undef' => undef);
34 'Foo::Bar' => 10,
35 'Foo::Baz' => 'v1.2.3',
36 'Foo::Undef' => 0,
47 $req->add_minimum('Foo::Bar', 2);
49 pass('we can add a Foo::Bar requirement with no effect post finalization');
[all …]
Daccepts.t9 my $req = CPAN::Meta::Requirements->new->add_minimum(Foo => 1);
11 ok( $req->accepts_module(Foo => 1), "need 1, got 1");
12 ok(! $req->accepts_module(Foo => 0), "need 0, got 1");
16 my $req = CPAN::Meta::Requirements->new->add_minimum(Foo => 0);
18 ok( $req->accepts_module(Foo => 1), "need 0, got 1");
19 ok( $req->accepts_module(Foo => undef), "need 0, got undef");
20 ok( $req->accepts_module(Foo => "v0"), "need 0, got 'v0'");
21 ok( $req->accepts_module(Foo => v1.2.3), "need 0, got v1.2.3");
22 ok( $req->accepts_module(Foo => "v1.2.3"), "need 0, got 'v1.2.3'");
26 my $req = CPAN::Meta::Requirements->new->add_maximum(Foo => 1);
[all …]
/openbsd/src/gnu/usr.bin/perl/cpan/Pod-Simple/t/
Dxhtml10.t31 ok $parser->parse_string_document( '=head1 Foo' ), 'Parse one header';
43 <li><a href="#Foo">Foo</a></li>
46 <h1 id="Foo">Foo</h1>
54 ok $parser->parse_string_document( '=head1 Foo Bar' ), 'Parse multiword header';
57 <li><a href="#Foo-Bar">Foo Bar</a></li>
60 <h1 id="Foo-Bar">Foo Bar</h1>
65 ok $parser->parse_string_document( "=head1 Foo B<Bar>\n\n=head1 Foo B<Baz>" ),
69 <li><a href="#Foo-Bar">Foo Bar</a></li>
70 <li><a href="#Foo-Baz">Foo Baz</a></li>
73 <h1 id="Foo-Bar">Foo <b>Bar</b></h1>
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.pt/
Dspec17.C4 struct Foo { }; struct
10 struct BT< Foo<T1>, Foo<T2> > { static const int i = 1; };
13 struct BT< T1, Foo<T2> > { static const int i = 2; };
16 struct BT< Foo<T1>, T2 > { static const int i = 3; };
19 int foo(Foo<T1>, Foo<T2>)
25 int foo(T1, Foo<T2>)
31 int foo(Foo<T1>, T2)
38 BT< double, Foo<int> >::i;
39 BT< Foo<int>, Foo<int> >::i;
40 BT< Foo<int>, float >::i;
[all …]
/openbsd/src/gnu/usr.bin/perl/t/lib/feature/
Dindirect6 package Foo {
16 my $x = new Foo;
23 my $y = new Foo;
26 …eword found where operator expected (Do you need to predeclare "new"?) at - line 19, near "new Foo"
27 syntax error at - line 19, near "new Foo"
32 package Foo {
37 print { $st } "Foo\n";
38 say { $st } "Foo";
41 my $class = "Foo";
48 print { $st } "Foo\n";
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.law/
Dtemps2.C13 class Foo
16 Foo();
17 ~Foo();
19 Foo &method();
22 Foo f1() in f1()
24 return Foo(); in f1()
27 Foo::Foo() in Foo() function
31 Foo::~Foo() in ~Foo()
39 Foo &Foo::method() in method()
Dfriend1.C11 struct Foo { struct
14 Foo();
15 ~Foo();
17 Foo::Foo() { } in Foo() function
18 Foo::~Foo() { } in ~Foo()
Dctors9.C11 struct Foo struct
13 Foo(int aa);
15 const Foo* operator-> () const {return this;} argument
18 Foo::Foo(int aa) in Foo() function
23 struct var_Foo: public Foo
28 int blort(Foo& f) in blort()
/openbsd/src/gnu/llvm/lldb/third_party/Python/module/unittest2/unittest2/test/
Dtest_skipping.py9 class Foo(unittest2.TestCase): class
15 test = Foo("test_skip_me")
21 class Foo(unittest2.TestCase): class
29 test = Foo("test_nothing")
39 class Foo(unittest2.TestCase): class
49 test_do_skip = Foo("test_skip")
50 test_dont_skip = Foo("test_dont_skip")
64 class Foo(unittest2.TestCase): class
70 Foo = unittest2.skip("testing")(Foo)
73 test = Foo("test_1")
[all …]
Dtest_loader.py15 class Foo(unittest2.TestCase): class
23 tests = unittest2.TestSuite([Foo('test_1'), Foo('test_2')])
26 self.assertEqual(loader.loadTestsFromTestCase(Foo), tests)
33 class Foo(unittest2.TestCase): class
40 self.assertEqual(loader.loadTestsFromTestCase(Foo), empty_suite)
70 class Foo(unittest2.TestCase): class
79 suite = loader.loadTestsFromTestCase(Foo)
81 self.assertEqual(list(suite), [Foo('runTest')])
925 class Foo(unittest2.TestCase): class
930 m.Foo = Foo
[all …]
Dtest_case.py21 class Foo(unittest2.TestCase): class in Test
27 class Bar(Foo):
199 eq_pairs = [(Test.Foo('test1'), Test.Foo('test1'))]
202 ne_pairs = [(Test.Foo('test1'), Test.Foo('runTest')),
203 (Test.Foo('test1'), Test.Bar('test1')),
204 (Test.Foo('test1'), Test.Bar('test2'))]
261 class Foo(unittest2.TestCase): class
265 self.assertEqual(Foo('test').countTestCases(), 1)
272 class Foo(unittest2.TestCase): class
277 result = Foo().defaultTestResult()
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.benjamin/
Dtem07.C3 class Foo
6 Foo(const T&);
7 Foo(const T&, const T&);
11 Foo<T>::Foo(const T& t0) in Foo() function
16 Foo<T>::Foo(const T& t0, const T& t1) in Foo() function
20 template Foo<int>::Foo(const int& t0);
/openbsd/src/gnu/llvm/llvm/docs/
DInAlloca.rst32 that passes two default-constructed ``Foo`` objects to ``g`` in the
37 // Foo is non-trivial.
38 struct Foo { int a, b; Foo(); ~Foo(); Foo(const Foo &); };
39 void g(Foo a, Foo b);
41 g(Foo(), Foo());
46 %struct.Foo = type { i32, i32 }
47 declare void @Foo_ctor(%struct.Foo* %this)
48 declare void @Foo_dtor(%struct.Foo* %this)
49 declare void @g(<{ %struct.Foo, %struct.Foo }>* inalloca %memargs)
54 %memargs = alloca <{ %struct.Foo, %struct.Foo }>
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.mike/
Dp9129.C5 class Foo {
10 int (Foo::*pA)() = { &Foo::DoSomething }; variable
11 int (Foo::*X[1])(int) = { { &Foo::DoSomething } }; // ERROR - variable
12 int (Foo::*Y[])(int) = { { &Foo::DoSomething, &Foo::DoSomething, 0 } }; // ERROR - variable
Dp2394.C3 class Foo {
7 Foo(int i, int j) { x = i; y = j; } in Foo() function
12 class Bar : Wasted, public Foo {
14 Bar() : Foo(12, 13) { } in Bar()
19 int Foo::* pmi = &Foo::y; in test0()
25 int Foo::* pmi = &Foo::y; in test1()
Deh31.C6 class Foo {
8 Foo() { ++count; } in Foo() function
9 Foo(const Foo&) { ++count; } in Foo() argument
10 ~Foo() { --count; } in ~Foo()
16 throw Foo(); in main()
18 catch (Foo& object) { in main()
Dp7912.C7 class Foo {
9 Foo() { ++count; }; in Foo() function
10 Foo(const Foo&) { ++count; }; in Foo() argument
11 ~Foo() { --count; }; in ~Foo()
18 throw Foo(); in main()
20 catch (Foo object) { in main()
/openbsd/src/gnu/usr.bin/perl/cpan/Getopt-Long/t/
Dgol-linkage.t16 @ARGV = qw(-Foo -baR --foo bar);
22 print ((defined $lnk{Foo}) ? "" : "not ", "ok 4\n");
23 print (($lnk{Foo} eq "-baR") ? "" : "not ", "ok 5\n");
28 @ARGV = qw(-Foo -baR --foo bar);
35 print ((defined $lnk{Foo}) ? "" : "not ", "ok 12\n");
36 print (($lnk{Foo} eq "-baR") ? "" : "not ", "ok 13\n");
43 @ARGV = qw(/Foo=-baR --bar bar);
50 print ((defined $lnk{Foo}) ? "" : "not ", "ok 22\n");
51 print (($lnk{Foo} eq "-baR") ? "" : "not ", "ok 23\n");
62 @ARGV = qw(/Foo=-baR);
[all …]
/openbsd/src/gnu/usr.bin/perl/cpan/Test-Simple/t/Legacy/
Duse_ok.t10 package Foo::one;
17 package Foo::two;
25 package Foo::three;
32 package Foo::four;
41 package Foo::five;
47 package Foo::six;
53 package Foo::seven;
63 package Foo::eight;
99 sub Foo::bar { 42 }
/openbsd/src/gnu/usr.bin/perl/cpan/CPAN-Meta/t/
Dno-index.t31 $meta->should_index_package('Foo::Bar::Baz'),
36 $meta->should_index_file('lib/Foo/Bar/Baz.pm'),
45 package => [ 'Foo::Bar' ],
46 namespace => [ 'Foo::Bar::Baz' ],
51 ! $meta->should_index_package('Foo::Bar'),
56 $meta->should_index_package('Foo::Bar::Baz'),
61 ! $meta->should_index_package('Foo::Bar::Baz::Quux'),
70 file => [ 'lib/Foo/Bar.pm' ],
71 directory => [ 'lib/Foo/Bar/Baz' ],
76 ! $meta->should_index_file('lib/Foo/Bar.pm'),
[all …]
/openbsd/src/gnu/usr.bin/perl/cpan/AutoLoader/t/
D01AutoLoader.t36 package Foo;
42 package Foo;
48 package Foo;
57 package Foo;
63 package Foo; package
74 my $foo = Foo->new();
80 is( $result, \&Foo::foo, 'can() returns ref to regular installed sub' );
115 package Foo;
121 package Foo;
126 Foo::a();
[all …]
/openbsd/src/gnu/usr.bin/perl/cpan/Filter-Util-Call/t/
Drt_54452-rebless.t27 my $module = "Foo";
30 writeFile("t/Foo.pm", <<'EOM') ;
31 package Foo;
34 our @ISA = ('Foo::Base');
36 package Foo::Base;
56 use Foo;
67 ok(2, $a eq "before Foo
68 after Foo
69 filter Foo", "RT \#54452 " . $a);
72 unlink "t/Foo.pm" or die "Cannot remove t/Foo.pm: $!\n" ;
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/
Daccess23.C6 struct Foo { struct
39 struct Bar : public Foo { argument
43 Foo::A = 0; in DoSomething()
45 Foo::PUB.A = 0; in DoSomething()
48 printf("%x\n",Foo::pY); in DoSomething()
51 printf("%x\n",Foo::PRT.pY); in DoSomething()
53 Foo::C = 0; // ERROR - in DoSomething()
55 Foo::PRV.C = 0; // ERROR - in DoSomething()
62 Foo a; in main()

12345678910>>...21