Skip to content

Commit

Permalink
coverage: indexfile <---> indexfile (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
friendlymatthew authored Feb 6, 2024
1 parent 4877488 commit 1cc6fe5
Show file tree
Hide file tree
Showing 4 changed files with 293 additions and 200 deletions.
196 changes: 0 additions & 196 deletions pkg/appendable/index_file_test.go

This file was deleted.

2 changes: 0 additions & 2 deletions pkg/handlers/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,11 @@ func InferCSVField(fieldValue string) (interface{}, appendable.FieldType) {

if i, err := strconv.Atoi(fieldValue); err == nil {

fmt.Printf("\n%v is a integer\n", fieldValue)
return float64(i), appendable.FieldTypeFloat64
}

if f, err := strconv.ParseFloat(fieldValue, 64); err == nil {

fmt.Printf("\n%v is a float\n", fieldValue)
return float64(f), appendable.FieldTypeFloat64
}

Expand Down
5 changes: 3 additions & 2 deletions pkg/handlers/csv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package handlers

import (
"encoding/binary"
"github.com/kevmo314/appendable/pkg/appendable"
"github.com/kevmo314/appendable/pkg/buftest"
"log/slog"
"math"
"os"
"strings"
"testing"

"github.com/kevmo314/appendable/pkg/appendable"
"github.com/kevmo314/appendable/pkg/buftest"
)

func TestCSV(t *testing.T) {
Expand Down
Loading

0 comments on commit 1cc6fe5

Please sign in to comment.