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
745cea82
Commit
745cea82
authored
18 years ago
by
Will Spooner
Browse files
Options
Downloads
Patches
Plain Diff
Added tests for store_mapping_path method
parent
d755a1b3
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/coordSystemAdaptor.t
+18
-2
18 additions, 2 deletions
modules/t/coordSystemAdaptor.t
with
18 additions
and
2 deletions
modules/t/coordSystemAdaptor.t
+
18
−
2
View file @
745cea82
...
...
@@ -2,13 +2,13 @@ use strict;
BEGIN
{
$|
=
1
;
use
Test
;
plan
tests
=>
3
4
;
plan
tests
=>
3
7
;
}
use
Bio::EnsEMBL::Test::
MultiTestDB
;
use
Bio::EnsEMBL::Test::
TestUtils
;
our
$verbose
=
0
;
#set to 1 to turn on debug printouts
our
$verbose
=
1
;
#set to 1 to turn on debug printouts
my
$multi
=
Bio::EnsEMBL::Test::
MultiTestDB
->
new
();
my
$db
=
$multi
->
get_DBAdaptor
(
'
core
'
);
...
...
@@ -163,6 +163,22 @@ my ($attrib) = $sth->fetchrow_array();
ok
(
$attrib
eq
'
default_version
');
$sth
->
finish
();
#
# Test store_mapping_path
#
my
$new_paths
=
$csa
->
store_mapping_path
(
$cs
,
$cln_cs
);
ok
(
@
{
$new_paths
}
==
1
&&
$new_paths
->
[
0
]
eq
'
clone|newsystem:NCBI35
'
);
my
$new_path
=
$csa
->
get_mapping_path
(
$cs
,
$cln_cs
);
ok
(
@
{
$new_path
}
==
2
&&
$new_path
->
[
0
]
->
name
eq
'
clone
'
&&
$new_path
->
[
1
]
->
name
eq
'
newsystem
'
);
my
$new_paths2
=
$csa
->
store_mapping_path
(
$cs
,
$cln_cs
);
ok
(
@
{
$new_paths2
}
==
0
);
# Should not update second time round
$multi
->
restore
('
core
',
'
coord_system
');
...
...
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