Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reverted a previous change to Mojo::Loader that allowed for load_clas…
…s to be called on the same class multiple times, since it had very bad side effects
- Loading branch information
Showing
11 changed files
with
67 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ package Mojo::LoaderException; | |
|
||
use Mojo::Base -base; | ||
|
||
sub new {} | ||
|
||
foo { | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use Mojo::Base -strict; | ||
|
||
use Test::More; | ||
use Mojo::Reactor::Poll; | ||
|
||
# Dummy reactor | ||
package Mojo::Reactor::Test; | ||
use Mojo::Base 'Mojo::Reactor::Poll'; | ||
|
||
package main; | ||
|
||
# Detection (env) | ||
{ | ||
local $ENV{MOJO_REACTOR} = 'Mojo::Reactor::Test'; | ||
is(Mojo::Reactor->detect, 'Mojo::Reactor::Test', 'right class'); | ||
} | ||
|
||
# Event loop detection | ||
require Mojo::IOLoop; | ||
is ref Mojo::IOLoop->new->reactor, 'Mojo::Reactor::Test', 'right class'; | ||
|
||
done_testing(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package MojoliciousTest::SideEffects::Test; | ||
use Mojo::Base 'Mojolicious::Controller'; | ||
|
||
sub index { shift->render(text => 'pass') } | ||
|
||
1; |