NAME

Music::Tag::Test - Routines to test Music::Tag plugins

SYNOPSIS

#!/usr/bin/perl -w
use strict;
use Test::More tests => 62;
use Music::Tag::Test;

BEGIN { use_ok('Music::Tag') }
my $c = filetest("t/elise.mp3", "t/elisetest.mp3", {},{
    values_in => {
        artist =>, "Beethoven", 
        album => "GPL",
        title 1=> "Elise",
        sha1 => '39cd05447fa9ab6d6db08f41a78ac8628874c37e',
    },
    skip_write_tests => 0,
    random_write => [ qw(title artist album) ], 
    random_write_date => [ qw(releaseepoch) ],
    random_write_num => [ qw(track) ],
    picture_in => 0,
    picture_file => 'beethoven.jpg',
    picture_sha1 => 'b2bf4b2f71bf01e12473dd0ebe295777127589f4',
    picture_read => 1,
    count => 60,
    plugin => 'MP3'
});

DESCRIPTION

Music::Tag::Test provides routines to test Music::Tag plugins

SUBROUTINES

filetest()

Takes a hashref of options to perform multiple test on a file.

create_tag

Create a tag for given options.

read_tag()

Perform read test

random_write(), random_write_num(), random_write_date()

Write random data to tags

random_read(), random_read_num(), random_read_date()

Read back data written.

read_picture

Read a picture

write_picture

Write a picture

BUGS

Unknown

SEE ALSO

Music::Tag

AUTHOR

Edward Allen III <ealleniii _at_ cpan _dot_ org>

LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either:

a) the GNU General Public License as published by the Free
Software Foundation; either version 1, or (at your option) any
later version, or

b) the "Artistic License" which comes with Perl.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details.

You should have received a copy of the Artistic License with this Kit, in the file named "Artistic". If not, I'll be glad to provide one.

You should also have received a copy of the GNU General Public License along with this program in the file named "Copying". If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA or visit their web page on the Internet at http://www.gnu.org/copyleft/gpl.html.

COPYRIGHT

Copyright © 2007,2010 Edward Allen III. Some rights reserved.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 328:

Non-ASCII character seen before =encoding in '©'. Assuming UTF-8