File: 01_mutex_channel.t

package info (click to toggle)
libmce-perl 1.901-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,316 kB
  • sloc: perl: 14,091; makefile: 7
file content (21 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env perl

use strict;
use warnings;

use Test::More;
use MCE::Mutex;

{
    my $mutex = MCE::Mutex->new( impl => 'Channel' );

    is( $mutex->impl(), 'Channel', 'implementation name 1' );
}
{
    my $mutex = MCE::Mutex->new();

    is( $mutex->impl(), 'Channel', 'implementation name 2' );
}

done_testing;