mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 14:19:54 +05:00
FIxed MIssingStructFields test
This commit is contained in:
committed by
Dan Christian Bogos
parent
858878cc12
commit
d54f73cd90
@@ -37,9 +37,9 @@ func TestMissingStructFieldsCorrect(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestMissingStructFieldsNilCorporate(t *testing.T) {
|
||||
tst := &TenantIDWithAPIOpts{
|
||||
APIOpts: map[string]interface{}{
|
||||
OptsAPIKey: "attr1234",
|
||||
tst := &TenantArgWithPaginator{
|
||||
Paginator: Paginator{
|
||||
Limit: IntPointer(1),
|
||||
},
|
||||
}
|
||||
if missing := MissingStructFields(tst,
|
||||
@@ -52,14 +52,12 @@ func TestMissingStructFieldsNilCorporateTwoStructs(t *testing.T) {
|
||||
tst := &struct {
|
||||
APIOpts map[string]interface{}
|
||||
*TenantID
|
||||
*TenantWithAPIOpts
|
||||
*TenantArg
|
||||
}{
|
||||
APIOpts: map[string]interface{}{
|
||||
OptsAPIKey: "attr1234",
|
||||
},
|
||||
TenantID: &TenantID{
|
||||
Tenant: "cgrates.org",
|
||||
},
|
||||
TenantArg: &TenantArg{},
|
||||
}
|
||||
if missing := MissingStructFields(tst,
|
||||
[]string{Tenant}); len(missing) != 1 {
|
||||
|
||||
Reference in New Issue
Block a user