<commit_before>use strict;
use warnings FATAL => 'all';
use utf8;

use Cwd qw/abs_path/;
use File::Basename qw/basename/;
use File::Spec;
use Test::Mock::Guard qw/mock_guard/;

use t::Util;
use HTTP::Command::Wrapper;

{
    local $ENV{PATH} = abs_path(File::Spec->catfile(dirname(__FILE__), qw/.. .. .. data bin/));

    subtest found => sub {
        ok(HTTP::Command::Wrapper->_which('http_command_wrapper'));
    };

    subtest not_found => sub {
        ok(!HTTP::Command::Wrapper->_which('__invalid_http_command_wrapper'));
    };<commit_msg>test(which): fix which test<commit_after>use strict;
use warnings FATAL => 'all';
use utf8;

use Cwd qw/abs_path/;
use File::Basename qw/basename/;
use File::Spec;
use Test::Mock::Guard qw/mock_guard/;

use t::Util;
use HTTP::Command::Wrapper;
use HTTP::Command::Wrapper::Test::Mock;

{
    subtest found => sub {
	    create_binary_mock {
            ok(HTTP::Command::Wrapper->_which('http_command_wrapper'));
        };
    };

    subtest not_found => sub {
        ok(!HTTP::Command::Wrapper->_which('__invalid_http_command_wrapper'));
    };
{'fraction_non_alphanumeric': 0.17062043795620438, 'fraction_numerical': 0.0018248175182481751, 'mean_word_length': 4.150234741784038, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '7198121', 'n_tokens_mistral': 377, 'n_tokens_neox': 370, 'n_words': 74}