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

use strict;
use Test::More 'no_plan';
use Data::Dumper;

use SqlDatabase;
use SqlTable;

my $sql = <<'SCHEMA';
CREATE TABLE t1 (
    id integer NOT NULL
);

CREATE TABLE t2 (
	ref integer
);

CREATE TABLE child (
	value integer
) INHERITS (t1,t2);
SCHEMA

my @columns;
my $idColumn;
my $refColumn;
my $valueColumn;

my $model = SqlDatabase->new('test',$sql);
my @tables = $model->getSqlTables();
is( scalar(@tables),3,"3 tables found");

my @inheritedTables = $model->getInheritedTables();<commit_msg>Correction of the test (bad class declaration)<commit_after>#!/usr/bin/env perl

use strict;
use Test::More 'no_plan';
use Data::Dumper;

use Alatar::Model::SqlDatabase;
use Alatar::Model::SqlTable;

my $sql = <<'SCHEMA';
CREATE TABLE t1 (
    id integer NOT NULL
);

CREATE TABLE t2 (
	ref integer
);

CREATE TABLE child (
	value integer
) INHERITS (t1,t2);
SCHEMA

my @columns;
my $idColumn;
my $refColumn;
my $valueColumn;

my $model = Alatar::Model::SqlDatabase->new('test',$sql);
my @tables = $model->getSqlTables();
is( scalar(@tables),3,"3 tables found");

my @inheritedTables = $model->getInheritedTables();
{'fraction_non_alphanumeric': 0.15625, 'fraction_numerical': 0.010416666666666666, 'mean_word_length': 5.441340782122905, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1348387', 'n_tokens_mistral': 421, 'n_tokens_neox': 417, 'n_words': 119}