<commit_before>#!/usr/bin/env perl6

use Test;
use lib 'lib';

use WebService::Slack::Webhook;

#Make some vars
my $fake-url = "https://hooks.slack.com/services/example.html";

#Make a bad object.
dies-ok {WebService::Slack::Webhook.new()},
    'Bad object fails correctly';

#Make a good object with a url.
isa-ok WebService::Slack::Webhook.new(url => "$fake-url"),
    'WebService::Slack::Webhook',
    'Good object can be made with url';

done-testing;
<commit_msg>Change the example URL to make it look more like the real URL.<commit_after>#!/usr/bin/env perl6

use Test;
use lib 'lib';

use WebService::Slack::Webhook;

#Make some vars
my $fake-url = "https://hooks.slack.com/services/example/integration/url";

#Make a bad object.
dies-ok {WebService::Slack::Webhook.new()},
    'Bad object fails correctly';

#Make a good object with a url.
isa-ok WebService::Slack::Webhook.new(url => "$fake-url"),
    'WebService::Slack::Webhook',
    'Good object can be made with url';

done-testing;

{'fraction_non_alphanumeric': 0.1566265060240964, 'fraction_numerical': 0.002008032128514056, 'mean_word_length': 4.50828729281768, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '7336698', 'n_tokens_mistral': 352, 'n_tokens_neox': 348, 'n_words': 100}