Skip to content

Tests do not use Go’s testing API properly #35

@radeqq007

Description

@radeqq007

Chore

Describe the chore

Current implementation of tests is using fmt package for logging results instead of t.Error, t.Errorf, or t.Fatal. This makes the test pass even if an error occurs.

Additional context

Example from the current code:

client, err := supabase.NewClient(API_URL, API_KEY, nil)
if err != nil {
	fmt.Println("cannot initialize client", err) // This doesn't fail the test
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions