Debian Codegraph @

seq/linear/linear_test.go

raw
1 // Copyright ©2011-2013 The bíogo Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package linear
6
7 import (
8 "testing"
9
10 "github.com/biogo/biogo/alphabet"
11 "gopkg.in/check.v1"
12 )
13
14 // Tests
15 func Test(t *testing.T) { check.TestingT(t) }
16
17 type S struct{}
18
19 var _ = check.Suite(&S{})
20
21 func (s *S) TestWarning(c *check.C) { c.Log("\nFIXME: Tests only in example tests.\n") }
22
23 func BenchmarkRevComp(b *testing.B) {
24 in := []alphabet.Letter("ATGCtGACTTGGTGCACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTATGCtGACTTGGTGCACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTATGCtGACTTGGTGCACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTATGCtGACTTGGTGCACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTATGCtGACTTGGTGCACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT")
25 for i := 0; i < b.N; i++ {
26 s := NewSeq("example DNA", in, alphabet.DNA)
27 s.RevComp()
28 }
29 }