<commit_before>use strict;
use warnings;

use Test::More;
use Test::Exception;

BEGIN { use_ok('AliTV::Genome') };

# this test is not required as it always has a _initialize method
can_ok('AliTV::Genome', qw(_initialize));

my $obj = new_ok('AliTV::Genome');

lives_ok { $obj->_initialize() } 'Overwritten function should avoid exception';

done_testing;<commit_msg>Added a test for initialize and name setting<commit_after>use strict;
use warnings;

use Test::More;
use Test::Exception;

BEGIN { use_ok('AliTV::Genome') };

# this test is not required as it always has a _initialize method
can_ok('AliTV::Genome', qw(_initialize));

my $obj = new_ok('AliTV::Genome');

lives_ok { $obj->_initialize() } 'Overwritten function should avoid exception';

my $testname = "Species1";
$obj->_initialize(name => $testname);

is($obj->name(), $testname, 'Name can be set');

done_testing;
{'fraction_non_alphanumeric': 0.14659090909090908, 'fraction_numerical': 0.0011363636363636363, 'mean_word_length': 6.4033613445378155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3607230', 'n_tokens_mistral': 288, 'n_tokens_neox': 284, 'n_words': 87}