func TestLoadWithParsersInitConfigNoDefaultNoFlag(t *testing.T) {
	// INIT
	config := newConfiguration()
	defaultPointers := &Configuration{}

	customParsers := map[reflect.Type]parse.Parser{
		reflect.TypeOf([]ServerInfo{}): &sliceServerValue{},
	}

	var args []string

	// TEST
	if err := LoadWithParsers(config, defaultPointers, args, customParsers); err != nil {
		t.Fatal(err)
	}

	// CHECK
	check := newConfiguration()
	if !reflect.DeepEqual(config, check) {
		if !reflect.DeepEqual(config.Owner, check.Owner) {
			t.Errorf("\nexpected\t: %+v\ngot\t\t\t: %+v", check.Owner, config.Owner)
		}
		t.Errorf("Error :\nexpected \t%+v \ngot \t\t%+v\n", check, config)
	}
}
// Test LoadWithParsers on not empty config without default values on pointers and without flag called
Test LoadWithParsers on not empty config without default values on pointers and without flag called
// Test LoadWithParsers on not empty config without default values on pointers and without flag called
func TestLoadWithParsersInitConfigNoDefaultNoFlag(t *testing.T) {
	config := newConfiguration()
	defaultPointers := &Configuration{}
	customParsers := map[reflect.Type]parse.Parser{
		reflect.TypeOf([]ServerInfo{}): &sliceServerValue{},
	}
	var args []string
	if err := LoadWithParsers(config, defaultPointers, args, customParsers); err != nil {
		t.Fatal(err)
	}
	check := newConfiguration()
	if !reflect.DeepEqual(config, check) {
		if !reflect.DeepEqual(config.Owner, check.Owner) {
			t.Errorf("\nexpected\t: %+v\ngot\t\t\t: %+v", check.Owner, config.Owner)
		}
		t.Errorf("Error :\nexpected \t%+v \ngot \t\t%+v\n", check, config)
	}
}
func TestLoadWithParsersInitConfigNoDefaultNoFlag ( t * testing . T ) { config := newConfiguration ( ) defaultPointers := & Configuration { } customParsers := map [ reflect . Type ] parse . Parser { reflect . TypeOf ( [ ] ServerInfo { } ) : & sliceServerValue { } , } var args [ ] string if err := LoadWithParsers ( config , defaultPointers , args , customParsers ) ; err != nil { t . Fatal ( err ) } check := newConfiguration ( ) if ! reflect . DeepEqual ( config , check ) { if ! reflect . DeepEqual ( config . Owner , check . Owner ) { t . Errorf ( " \n \t \n \t \t \t " , check . Owner , config . Owner ) } t . Errorf ( " \n \t \n \t \t \n " , check , config ) } }
Test LoadWithParsers on not empty config without default values on pointers and without flag called
Test LoadWithParsers on not empty config without default values on pointers and without flag called
// INIT // TEST // CHECK