"Fossies" - the Fresh Open Source Software Archive

Member "eprints3.4-3.4.4/tests/25_mysql.pl" (7 Aug 2022, 1447 Bytes) of package /linux/www/eprints3.4-3.4.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "25_mysql.pl": 3.4-3.4.3_vs_3.4-3.4.4.

    1 use strict;
    2 use Test::More tests => 6;
    3 
    4 BEGIN { use_ok( "EPrints" ); }
    5 BEGIN { use_ok( "EPrints::Test" ); }
    6 
    7 my $session = EPrints::Test::get_test_session( 0 );
    8 ok(defined $session, 'opened an EPrints::Session object');
    9 
   10 my $database = $session->get_database();
   11 ok( defined $database, "database defined" );
   12 
   13 my $dataset = $session->dataset( "eprint" );
   14 
   15 SKIP: {
   16     skip "Only supports MySQL", 1 unless $database->isa( "EPrints::Database::mysql" );
   17 
   18     ok($database->index_name(
   19         $dataset->get_sql_table_name,
   20         $dataset->field( "datestamp" )->get_sql_index
   21     ), "index_name(eprint.datestamp)");
   22 }
   23 
   24 ok(1);
   25 
   26 =head1 COPYRIGHT
   27 
   28 =for COPYRIGHT BEGIN
   29 
   30 Copyright 2022 University of Southampton.
   31 EPrints 3.4 is supplied by EPrints Services.
   32 
   33 http://www.eprints.org/eprints-3.4/
   34 
   35 =for COPYRIGHT END
   36 
   37 =for LICENSE BEGIN
   38 
   39 This file is part of EPrints 3.4 L<http://www.eprints.org/>.
   40 
   41 EPrints 3.4 and this file are released under the terms of the
   42 GNU Lesser General Public License version 3 as published by
   43 the Free Software Foundation unless otherwise stated.
   44 
   45 EPrints 3.4 is distributed in the hope that it will be useful,
   46 but WITHOUT ANY WARRANTY; without even the implied warranty of
   47 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   48 See the GNU Lesser General Public License for more details.
   49 
   50 You should have received a copy of the GNU Lesser General Public
   51 License along with EPrints 3.4.
   52 If not, see L<http://www.gnu.org/licenses/>.
   53 
   54 =for LICENSE END
   55