Skip to content

Fix Decode test Errorf argument order #784

Description

@HNO3Miracle

The Decode array-to-struct test currently passes the error string and input value to t.Errorf in the wrong order.

This makes the failure output misleading and can also be reported by newer Go vet checks because the argument types do not match the format string intent.

I have a one-line test-only fix ready that swaps the arguments so the message matches the format string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsUnit tests

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions