summary refs log blame commit diff stats
path: root/svc/conf_test.go
blob: 5956fa16c9e6437b565ed3821eaeb4b266696d61 (plain) (tree)
5f06e58<
package svc

import (
	"reflect"
	"testing"
)

func Test_initConfig(t *testing.T) {
	t.Run("Testing Configuration Initialization", func(t *testing.T) {

		initConfig()
		confObj.Mu.RLock()
		cnf := reflect.Indirect(reflect.ValueOf(confObj))
		confObj.Mu.RUnlock()

		for i := 0; i < cnf.NumField(); i++ {
			if !cnf.Field(i).IsValid() {
				t.Errorf("Uninitialized value: %v\n", cnf.Field(i).Type())
			}
		}
	})
	testConfig()
}
class="w"> **state); void add_contact_with_three_groups(void **state); void add_contact_with_three_groups_update_adding_two(void **state); void add_contact_with_three_groups_update_removing_one(void **state); void add_contact_with_three_groups_update_removing_two(void **state); void add_contact_with_three_groups_update_removing_three(void **state); void add_contact_with_three_groups_update_two_new(void **state); void add_remove_contact_groups(void **state); void add_contacts_with_different_groups(void **state); void add_contacts_with_same_groups(void **state); void add_contacts_with_overlapping_groups(void **state); void remove_contact_with_remaining_in_group(void **state);