Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coverage: indexfile <---> indexfile #88

Merged
merged 2 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading