<commit_before>use strict;
use warnings;

{ package TestClass; use Moose; sub foo { } }

use Test::Builder::Tester;
use Test::More;
use Test::Moose::More;

subtest sanity => sub {
    has_no_method_ok TestClass => 'bar';
    has_no_method_ok TestClass => 'bar';
};

test_out 'ok 1 - TestClass has method foo';
has_method_ok 'TestClass', 'foo';
test_test 'has_method_ok works correctly with methods';

# is_role_ok vs plain-old-package
test_out 'not ok 1 - TestClass has method bar';
test_fail(1);
has_method_ok 'TestClass', 'bar';
test_test 'has_method_ok works correctly with DNE methods';

test_out 'ok 1 - TestClass does not have method bar';
has_no_method_ok 'TestClass', 'bar';
test_test 'has_no_method_ok works correctly with methods';

# is_role_ok vs plain-old-package
test_out 'not ok 1 - TestClass does not have method foo';
test_fail(1);
has_no_method_ok 'TestClass', 'foo';
test_test 'has_no_method_ok works correctly with DNE methods';

done_testing;
<commit_msg>Make our sanity checks sane<commit_after>use strict;
use warnings;

{ package TestClass; use Moose; sub foo { } }

use Test::Builder::Tester;
use Test::More;
use Test::Moose::More;

subtest sanity => sub {
    has_method_ok    TestClass => 'foo';
    has_no_method_ok TestClass => 'bar';
};

test_out 'ok 1 - TestClass has method foo';
has_method_ok 'TestClass', 'foo';
test_test 'has_method_ok works correctly with methods';

# is_role_ok vs plain-old-package
test_out 'not ok 1 - TestClass has method bar';
test_fail(1);
has_method_ok 'TestClass', 'bar';
test_test 'has_method_ok works correctly with DNE methods';

test_out 'ok 1 - TestClass does not have method bar';
has_no_method_ok 'TestClass', 'bar';
test_test 'has_no_method_ok works correctly with methods';

# is_role_ok vs plain-old-package
test_out 'not ok 1 - TestClass does not have method foo';
test_fail(1);
has_no_method_ok 'TestClass', 'foo';
test_test 'has_no_method_ok works correctly with DNE methods';

done_testing;

{'fraction_non_alphanumeric': 0.10579857578840285, 'fraction_numerical': 0.006103763987792472, 'mean_word_length': 5.600671140939597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2041469', 'n_tokens_mistral': 682, 'n_tokens_neox': 669, 'n_words': 216}