NAME
Koha::QA::TestNoWarnings - Centralized Test::NoWarnings checking
SYNOPSIS
use Koha::QA::TestNoWarnings;
# With a file
my $checker = Koha::QA::TestNoWarnings->new({file => $file});
# Or with content directly
my $checker = Koha::QA::TestNoWarnings->new({content => $file_content});
my $is_valid = $checker->check;
my @errors = $checker->errors;
DESCRIPTION
This module provides centralized Test::NoWarnings checking.
METHODS
new
my $checker = Koha::QA::TestNoWarnings->new({file => $file});
Creates a new TestNoWarnings instance.
check
my $is_valid = $checker->check;
Checks if a single Perl test file contains 'use Test::NoWarnings'.
errors
my @errors = $checker->errors;
Returns array of error hashrefs, each with: - error: the error type (test_no_warnings)
AUTHORS
Jonathan Druart <jonathan.druart@bugs.koha-community.org>
COPYRIGHT
Copyright 2026 Koha Development Team
LICENSE
This file is part of Koha.
Koha is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.