lib/Net/Async/Spotify/API/Personalization.pm

filter: Statementstmt 76.0% 19 / 25 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 100% 1 / 1 totaltotal 69.4% 25 / 36 CC 3 SCAR 16.3
CC
3
Cov
66%
get_users_top_artists_and_tracks
12.0
BEGIN
1.0
BEGIN
1.0
CRAP 5.1
« script/spotify-cli.pl ↑ Summary lib/Net/Async/Spotify/Scope.pm »
1 package Net::Async::Spotify::API::Personalization;
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  
6 1 our $VERSION = '0.002'; # VERSION
7 1 our $AUTHORITY = 'cpan:VNEALV'; # AUTHORITY
8  
9 1 ▶use mro;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use parent qw(Net::Async::Spotify::API::Generated::Personalization);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Future::AsyncAwait;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =encoding utf8
14  
15 =head1 NAME
16  
17 Net::Async::Spotify::API::Personalization - Package representing Main Spotify Personalization API
18  
19 =head1 DESCRIPTION
20  
21 Main module for an Autogenerated one L<Net::Async::Spotify::API::Generated::Personalization>.
22 Will hold all extra functionality for Spotify Personalization API
23  
24 =head1 METHODS
25  
26 =cut
27  
28 0 ▶async sub get_users_top_artists_and_tracks {
Subroutine get_users_top_artists_and_tracks: not called CC=3 SCAR=24.8
Pod documented
29 0 my $self = shift;
30 0 my %args = @_;
31 0 ▶ $self->mapping->{get_users_top_artists_and_tracks}{response} = ['Track'] if $args{type} eq 'tracks';
Branch: 1 branch
BranchTrueFalseTotal
if $args{"type"} eq "tracks" 0 0 0
32 0 ▶ $self->mapping->{get_users_top_artists_and_tracks}{response} = ['Artist'] if $args{type} eq 'artists';
Branch: 1 branch
BranchTrueFalseTotal
if $args{"type"} eq "artists" 0 0 0
33 0 await $self->next::method(@_);
34 1 }
35  
36 1 1;
« script/spotify-cli.pl ↑ Summary lib/Net/Async/Spotify/Scope.pm »