fix deserialization panics on empty map

This commit is contained in:
yusing
2024-12-18 15:15:55 +08:00
parent 36069cbe6d
commit 654194b274
7 changed files with 123 additions and 28 deletions

View File

@@ -0,0 +1,17 @@
package provider
import (
"testing"
_ "embed"
. "github.com/yusing/go-proxy/internal/utils/testing"
)
//go:embed all_fields.yaml
var yaml []byte
func TestFile(t *testing.T) {
_, err := validate(yaml)
ExpectNoError(t, err)
}