2022-03-27 20:22:26 +02:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
use v5.30.0;
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
2022-03-27 23:47:58 +02:00
|
|
|
use Test::Most tests => 2;
|
|
|
|
|
|
|
|
use Peace::Test::Mock::Model::Release;
|
2022-03-27 20:22:26 +02:00
|
|
|
|
|
|
|
BEGIN {
|
|
|
|
use_ok('Peace::Model::Build');
|
|
|
|
}
|
2022-03-27 23:47:58 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
## GIVEN
|
|
|
|
my $release = Peace::Test::Mock::Model::Release->new;
|
|
|
|
my $arch = 'x86';
|
2022-03-30 02:17:27 +02:00
|
|
|
my $success = 1;
|
|
|
|
my $log = 'Built successfully.';
|
2022-03-27 23:47:58 +02:00
|
|
|
my $build = Peace::Model::Build->new(
|
|
|
|
release => $release,
|
|
|
|
arch => $arch,
|
2022-03-30 02:17:27 +02:00
|
|
|
success => $success,
|
|
|
|
log => $log,
|
|
|
|
|
2022-03-27 23:47:58 +02:00
|
|
|
);
|
2022-03-30 02:17:27 +02:00
|
|
|
ok $build->isa('Peace::Model::Build'),
|
|
|
|
'Build is made of Peace::Model::Build.';
|
2022-03-27 23:47:58 +02:00
|
|
|
}
|