Assisted-by: GLM 5.3 Flash
This commit is contained in:
+2
-2
@@ -1319,8 +1319,8 @@ func TestDecodeFixedArray(t *testing.T) {
|
||||
|
||||
func TestRequiredTag(t *testing.T) {
|
||||
type Config struct {
|
||||
Host string `toml:"host,required"`
|
||||
Radius int `toml:"radius"`
|
||||
Host string `toml:"host,required"`
|
||||
Radius int `toml:"radius"`
|
||||
}
|
||||
t.Run("a present key satisfies the tag", func(t *testing.T) {
|
||||
var cfg Config
|
||||
|
||||
Reference in New Issue
Block a user