Diab Jerius avatar Diab Jerius committed 66f3c28

incorrectly labelled tests of output and error handlers as stdout and stderr

Comments (0)

Files changed (2)

t/Hg/Lib/Server/Pipe/runcommand.t

 INIT { Test::Class->runtests }
 
 # test the default error channel handler
-sub echo_stderr : Tests {
+sub echo_error : Tests {
 
     my $self   = shift;
     my $server = $self->{server};
 
     {
-        my ( $stdout, $stderr, $exit ) = $self->run_yaml( ['echo_stderr'] );
+        my ( $out, $err, $exit ) = $self->run_yaml( ['echo_error'] );
 
         is_deeply(
-            $stderr->[0],
+            $err->[0],
             {
-                cmd  => 'echo_stderr',
+                cmd  => 'echo_error',
                 args => []
             },
-            "echo_stderr, no args"
+            "echo_error, no args"
         );
     }
 
     {
-        my ( $stdout, $stderr, $exit )
-          = $self->run_yaml( [ 'echo_stderr', '-a' ] );
+        my ( $out, $err, $exit )
+          = $self->run_yaml( [ 'echo_error', '-a' ] );
 
         is_deeply(
-            $stderr->[0],
+            $err->[0],
             {
-                cmd  => 'echo_stderr',
+                cmd  => 'echo_error',
                 args => ['-a']
             },
-            "echo_stderr, args: -a"
+            "echo_error, args: -a"
         );
     }
 
 }
 
 # test the default output channel handler
-sub echo_stdout : Tests {
+sub echo_output : Tests {
 
     my $self   = shift;
     my $server = $self->{server};
 
-    my ( $stdout, $stderr, $exit )
-      = $self->run_yaml( [ 'echo_stdout', '--a', 3 ] );
+    my ( $out, $err, $exit )
+      = $self->run_yaml( [ 'echo_output', '--a', 3 ] );
 
     is_deeply(
-        $stdout->[0],
+        $out->[0],
         {
-            cmd  => 'echo_stdout',
+            cmd  => 'echo_output',
             args => [ '--a', 3 ]
         },
-        "echo_stdout, args: --a 3"
+        "echo_output, args: --a 3"
     );
 
 }

t/lib/Server/Commands.pm

         !$server->write_chunk( 'o', $dir );
     },
 
-    echo_stderr => sub {
+    echo_error => sub {
         my ( $server, $cmd, @args ) = @_;
 
         my $yaml = YAML::Tiny->new;
         !$server->write_chunk( 'e', $yaml->write_string );
     },
 
-    echo_stdout => sub {
+    echo_output => sub {
         my ( $server, $cmd, @args ) = @_;
 
         my $yaml = YAML::Tiny->new;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.