Skip to content
Snippets Groups Projects
Commit 0845552a authored by premanand17's avatar premanand17
Browse files

Added abstract method _tables implementation to TranslationAdaptor as needed...

Added abstract method _tables implementation to TranslationAdaptor as needed by generic_count in BaseAdaptor - ENSCORESW-1995
parent f547798a
No related branches found
No related tags found
2 merge requests!166Added abstract method _tables implementation to TranslationAdaptor as…,!166Added abstract method _tables implementation to TranslationAdaptor as…
......@@ -965,4 +965,18 @@ sub fetch_all {
return \@translations;
}
# _tables
# Arg [1] : none
# Description: PROTECTED implementation of superclass abstract method.
# Returns the names, aliases of the tables to use for queries.
# Returntype : list of listrefs of strings
# Exceptions : none
# Caller : internal
# Status : Stable
sub _tables {
return (['translation', 'tl']);
}
1;
......@@ -338,4 +338,7 @@ ok(!scalar(@alt_tls));
$ta->species_id(1);
}
# Test generic_count(), inherited method from BaseAdaptor
is($ta->generic_count(), @{$ta->list_dbIDs()}, "Number of features from generic_count is equal to the number of dbIDs from list_dbIDs");
done_testing();
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment