The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Nuvol::Test::Item - Test functions for Nuvol items

SYNOPSIS

use Nuvol::Test::Item ':all';
use Nuvol::Test::Item ':build';    # build_test_item

my $item = build_test_item $service;

test_basics;
test_type;
test_url;

DESCRIPTION

Nuvol::Test::Item provides test functions for Nuvol items.

FUNCTIONS

build_test_item

$item = build_test_item $service;

Returns a Nuvol::Item for the specified service.

test_basics

test_basics $item, $service;

Tests the basic structure of the item.

test_type

test_type $item, \@types;

Tests if the correct type is detected.

test_url

test_url $item, \@urls;

Tests URLs and realpaths built from IDs and paths.

SEE ALSO

Nuvol::Item, Nuvol::Test, Nuvol::Test::ItemLive.