lib/Seed/Audio/AI/SiteKit.pm

filter: Statementstmt 100% 19 / 19 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 2 totaltotal 93.3% 28 / 30 CC 3 SCAR 6.2
CC
3
Cov
100%
seed_audio_url
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
↑ Summary
1 package Seed::Audio::AI::SiteKit;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 our $VERSION = '0.1.0';
8 1 our @EXPORT_OK = qw(site seed_audio_url);
9  
10 2 ▶sub site {
Subroutine site: called CC=1 SCAR=0.0
Pod undocumented
11 return {
12 2 name => 'Seed Audio AI',
13 homepage => 'https://seedaud.io/',
14 description => 'Browser-based text-to-speech and AI voice generation workflow.',
15 canonicalPages => {
16 home => 'https://seedaud.io/',
17 textToSpeech => 'https://seedaud.io/text-to-speech/',
18 pricing => 'https://seedaud.io/pricing/',
19 safety => 'https://seedaud.io/safety/',
20 terms => 'https://seedaud.io/terms/',
21 },
22 tags => ['text-to-speech', 'ai-voice', 'voice-generator', 'site-kit'],
23 };
24 }
25  
26 2 ▶sub seed_audio_url {
Subroutine seed_audio_url: called CC=3 SCAR=11.0
Pod undocumented
27 2 my ($path) = @_;
28 2 ▶ $path = '' unless defined $path;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $path 1 1 2
29 2 $path =~ s{^/+}{};
30 2 $path =~ s{/+$}{};
31 2 ▶ return 'https://seedaud.io/' if $path eq '';
Branch: 1 branch
BranchTrueFalseTotal
if $path eq "" 1 1 2
32 1 return 'https://seedaud.io/' . $path . '/';
33 }
34  
35 1 1;
36  
37 __END__
↑ Summary