Skip to content

Commit

Permalink
stub in some location code and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cjfields committed Sep 10, 2014
1 parent ca52334 commit 2223822
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Bio/Location/Simple.pm6
@@ -0,0 +1,7 @@
use v6;

use Bio::Role::Location;

class Bio::Location::Simple does Bio::Role::Location;


29 changes: 29 additions & 0 deletions lib/Bio/Role/Location.pm6
@@ -0,0 +1,29 @@
use v6;

use Bio::Role::Range;

role Bio::Role::Location does Bio::Role::Range;

has Int $.start-offset is rw = 0;
has Int $.end-offset is rw = 0;
has $.seqid is rw;

# use enum here
has $.type is rw;

method max-start { ... }
method min-start { ... }
method max-end { ... }
method min-end { ... }

# use enum here
method start-pos-type { ... }
method end-pos-type { ... }

# return Bool
method is-valid { ... }
method is-remote { ... }
method is-fuzzy { ... }

# stringification?
#multi method WHICH { ... }
11 changes: 11 additions & 0 deletions t/Location/Simple.t
@@ -0,0 +1,11 @@
use v6;

use lib './lib';

use Test;

use Bio::Location::Simple;

ok(1);

done();

0 comments on commit 2223822

Please sign in to comment.