Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TwFlem committed Dec 12, 2023
1 parent 5c97fa7 commit a4548e3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions bwt/bitvector.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ func (b bitvector) checkBounds(i int) {
}
}

const factor1point2Threshold = 1e9
const factor1point5Threshold = 1e6

func (b bitvector) len() int {
return b.numberOfBits
}
Expand Down
3 changes: 1 addition & 2 deletions bwt/bwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ type BWTLocateTestCase struct {
}

func TestBWT_Locate(t *testing.T) {

inputSequence := "AACCTGCCGTCGGGGCTGCCCGTCGCGGGACGTCGAAACGTGGGGCGAAACGTG"

bwt2, err := New(inputSequence)
Expand Down Expand Up @@ -228,7 +227,7 @@ func TestBWT_Extract_DoNotAllowExtractionOfLastNullChar(t *testing.T) {
t.Fatalf("extractRange=(%d, %d) expected=%s actual=%s", 0, 6, testStr, str)
}

str = bwt.Extract(0, 7)
_ = bwt.Extract(0, 7)

t.Fatalf("extractRange=(%d, %d) expected panic so we do not allow access to the null character", 0, 7)
}
Expand Down
2 changes: 1 addition & 1 deletion bwt/rsa_bitvector.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type rsaBitVector struct {
zeroSelectMap map[int]int
}

// newRSABitVectorFromBitVector allows us to build the auxillary components
// newRSABitVectorFromBitVector allows us to build the auxiliary components
// needed to perform RSA queries on top of the provided bitvector.
// WARNING: Do not modify the underlying bitvector. The rsaBitvector will
// get out of sync with the original bitvector.
Expand Down
3 changes: 0 additions & 3 deletions bwt/rsa_bitvector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func TestRSARank_singlePartialChunk(t *testing.T) {
t.Fatalf("expected rank(%t, %d) to be %d but got %d", tc.val, tc.bitPosition, tc.expectedRank, rank)
}
}

}

func TestRSARank_singleCompleteChunk_PastBounds_Ones(t *testing.T) {
Expand All @@ -62,7 +61,6 @@ func TestRSARank_singleCompleteChunk_PastBounds_Ones(t *testing.T) {
t.Fatalf("expected rank(%t, %d) to be %d but got %d", tc.val, tc.bitPosition, tc.expectedRank, rank)
}
}

}

func TestRSARank_singleCompleteChunk_PastBounds_Zeros(t *testing.T) {
Expand All @@ -85,7 +83,6 @@ func TestRSARank_singleCompleteChunk_PastBounds_Zeros(t *testing.T) {
t.Fatalf("expected rank(%t, %d) to be %d but got %d", tc.val, tc.bitPosition, tc.expectedRank, rank)
}
}

}

func TestRSARank_singleCompleteChunk(t *testing.T) {
Expand Down

0 comments on commit a4548e3

Please sign in to comment.