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) {
|
func TestRequiredTag(t *testing.T) {
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Host string `toml:"host,required"`
|
Host string `toml:"host,required"`
|
||||||
Radius int `toml:"radius"`
|
Radius int `toml:"radius"`
|
||||||
}
|
}
|
||||||
t.Run("a present key satisfies the tag", func(t *testing.T) {
|
t.Run("a present key satisfies the tag", func(t *testing.T) {
|
||||||
var cfg Config
|
var cfg Config
|
||||||
|
|||||||
Reference in New Issue
Block a user