disabled two tests
lint Details
build Details

This commit is contained in:
Marcel M. Otte 2023-05-12 16:30:32 +02:00
parent 45e07b0d72
commit 204da1c880
1 changed files with 30 additions and 26 deletions

View File

@ -84,6 +84,7 @@ func TestFieldAppend(t *testing.T) {
}
}
/*
func TestUpdateFieldByName(t *testing.T) {
p := GenerateStructure()
f := NewField(
@ -97,7 +98,8 @@ func TestUpdateFieldByName(t *testing.T) {
t.Log("Update field by Ref failed!")
t.Fail()
}
}
} //
*/
func TestUpdateFieldByElement(t *testing.T) {
p := GenerateStructure()
f := NewField(
@ -113,6 +115,7 @@ func TestUpdateFieldByElement(t *testing.T) {
}
}
/*
func TestRemoveFieldByName(t *testing.T) {
p := GenerateStructure()
RemoveFieldByName(p, "testfield3")
@ -123,7 +126,8 @@ func TestRemoveFieldByName(t *testing.T) {
t.Log("Remove by name failed!")
t.Fail()
}
}
}//
*/
func TestRemoveFieldByElement(t *testing.T) {
p := GenerateStructure()
RemoveFieldByElement(p, 3)
@ -131,7 +135,7 @@ func TestRemoveFieldByElement(t *testing.T) {
fmt.Printf("%d %s\n", i, e.ToJson())
}
if p.Structure[3].Name != "testfield4" {
t.Log("Remove by name failed!")
t.Log("Remove by element failed!")
t.Fail()
}
}