Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
7822a431
Commit
7822a431
authored
22 years ago
by
Alistair Rust
Browse files
Options
Downloads
Patches
Plain Diff
Updated tests.
parent
dcf62a15
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/t/clone.t
+15
-24
15 additions, 24 deletions
modules/t/clone.t
with
15 additions
and
24 deletions
modules/t/clone.t
+
15
−
24
View file @
7822a431
...
...
@@ -2,7 +2,7 @@ use lib 't';
use
Test
;
use
strict
;
BEGIN
{
$|
=
1
;
plan
tests
=>
2
5
;}
BEGIN
{
$|
=
1
;
plan
tests
=>
2
4
;}
use
MultiTestDB
;
use
Bio::
Seq
;
...
...
@@ -92,11 +92,11 @@ ok(scalar(@$contigs) == 2);
#
# now let's get a real clone from the test db
#
my
$
r
clone_adaptor
=
$dba
->
get_CloneAdaptor
;
ok
(
$
r
clone_adaptor
);
my
$clone_adaptor
=
$dba
->
get_CloneAdaptor
;
ok
(
$clone_adaptor
);
my
$real_clone
=
$
r
clone_adaptor
->
fetch_by_accession
('
AL031658
');
my
$real_clone
=
$clone_adaptor
->
fetch_by_accession
('
AL031658
');
ok
(
$real_clone
);
...
...
@@ -124,8 +124,7 @@ $ens_test->save("core","contig","clone","dna","repeat_feature","simple_feature",
#
# do the deletion
#
my
$rca
=
$dba
->
get_CloneAdaptor
;
$rca
->
remove
(
$real_clone
);
$clone_adaptor
->
remove
(
$real_clone
);
#
# check the clones
...
...
@@ -133,14 +132,14 @@ $rca->remove($real_clone);
my
$sth
=
$dba
->
prepare
("
select * from clone
");
$sth
->
execute
;
#print STDERR "Num clones " . scalar($sth->rows) . "\n";
ok
(
scalar
(
$sth
->
rows
)
==
9
);
ok
(
scalar
(
$sth
->
rows
)
==
11
);
#
# check the contigs
#$sth = $dba->prepare("select * from contig");
$sth
->
execute
;
#print STDERR "Num contigs " . scalar($sth->rows) . "\n";
ok
(
scalar
(
$sth
->
rows
)
==
9
);
ok
(
scalar
(
$sth
->
rows
)
==
11
);
#
# check the simple features
...
...
@@ -148,7 +147,7 @@ ok(scalar($sth->rows) == 9);
$sth
=
$dba
->
prepare
("
select * from simple_feature
");
$sth
->
execute
;
#print STDERR "Num simple_features " . scalar($sth->rows) . "\n";
ok
(
scalar
(
$sth
->
rows
)
==
11
5
);
ok
(
scalar
(
$sth
->
rows
)
==
11
6
);
#
# check the repeat features
...
...
@@ -156,7 +155,7 @@ ok(scalar($sth->rows) == 115);
$sth
=
$dba
->
prepare
("
select * from repeat_feature
");
$sth
->
execute
;
#print STDERR "Num repeat_features " . scalar($sth->rows) . "\n";
ok
(
scalar
(
$sth
->
rows
)
==
1
780
);
ok
(
scalar
(
$sth
->
rows
)
==
1
937
);
#
# check the protein_align_features
...
...
@@ -164,7 +163,7 @@ ok(scalar($sth->rows) == 1780);
$sth
=
$dba
->
prepare
("
select * from protein_align_feature
");
$sth
->
execute
;
#print STDERR "Num protein_align_features " . scalar($sth->rows) . "\n";
ok
(
scalar
(
$sth
->
rows
)
==
4
698
);
ok
(
scalar
(
$sth
->
rows
)
==
4
727
);
#
# check the protein_align_features
...
...
@@ -172,7 +171,7 @@ ok(scalar($sth->rows) == 4698);
$sth
=
$dba
->
prepare
("
select * from dna_align_feature
");
$sth
->
execute
;
#print STDERR "Num dna_align_features " . scalar($sth->rows) . "\n";
ok
(
scalar
(
$sth
->
rows
)
==
15
4
55
);
ok
(
scalar
(
$sth
->
rows
)
==
155
2
5
);
#
# check the prediction_transcripts
...
...
@@ -180,7 +179,7 @@ ok(scalar($sth->rows) == 15455);
$sth
=
$dba
->
prepare
("
select * from prediction_transcript
");
$sth
->
execute
;
#print STDERR "Num dna_align_features " . scalar($sth->rows) . "\n";
ok
(
scalar
(
$sth
->
rows
)
==
1
47
);
ok
(
scalar
(
$sth
->
rows
)
==
1
61
);
#
...
...
@@ -189,7 +188,7 @@ ok(scalar($sth->rows) == 147);
$sth
=
$dba
->
prepare
("
select * from dna
");
$sth
->
execute
;
#print STDERR "Num dna records " . scalar($sth->rows) . "\n";
ok
(
scalar
(
$sth
->
rows
)
==
9
);
ok
(
scalar
(
$sth
->
rows
)
==
11
);
# restore the tables for the next test
...
...
@@ -200,17 +199,9 @@ $ens_test->restore("core","contig","clone","dna","repeat_feature","simple_featur
#
# just a quick check to see whether the restore has worked
#
$sth
=
$dba
->
prepare
("
select * from c
l
on
e
");
$sth
=
$dba
->
prepare
("
select * from con
tig
");
$sth
->
execute
;
ok
(
scalar
(
$sth
->
rows
)
==
10
);
#
# just a quick check to see whether the restore has worked
#
$sth
=
$dba
->
prepare
("
select * from simple_feature
");
$sth
->
execute
;
ok
(
scalar
(
$sth
->
rows
)
==
135
);
ok
(
scalar
(
$sth
->
rows
)
==
12
);
#
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment