repo_description: Vald.  A Highly Scalable Distributed Vector Search Engine
repo_topics: anng approximate-nearest-neighbor-search cloud cloud-native distributed-systems golang hacktoberfest high-dimensional-data high-performance image-search image-search-engine kubernetes microservices nearest-neighbor-search ngt similarity-search vald vector vector-search-engine
code: // Copyright (C) 2019-2026 vdaas.org vald team <[REDACTED_EMAIL]>
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // You may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //	https://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  package config
  
  // NOT IMPLEMENTED BELOW
  //
  // func TestIndexCreation_Bind(t *testing.T) {
  // 	type fields struct {
  // 		Discoverer       *DiscovererClient
  // 		AgentName        string
  // 		AgentNamespace   string
  // 		AgentDNS         string
  // 		NodeName         string
  // 		TargetAddrs      []string
  // 		AgentPort        int
  // 		Concurrency      int
  // 		CreationPoolSize uint32
  // 	}
  // 	type want struct {
  // 		want *IndexCreation
  // 	}
  // 	type test struct {
  // 		name       string
  // 		fields     fields
  // 		want       want
  // 		checkFunc  func(want, *IndexCreation) error
  // 		beforeFunc func(*testing.T)
  // 		afterFunc  func(*testing.T)
  // 	}
  // 	defaultCheckFunc := func(w want, got *IndexCreation) error {
  // 		if !reflect.DeepEqual(got, w.want) {
  // 			return errors.Errorf("got: \"%#v\",\n\t\t\t\twant: \"%#v\"", got, w.want)
  // 		}
  // 		return nil
  // 	}
  // 	tests := []test{
  // 		// TODO test cases
  // 		/*
  // 		   {
  // 		       name: "test_case_1",
  // 		       fields: fields {
  // 		           Discoverer:DiscovererClient{},
  // 		           AgentName:"",
  // 		           AgentNamespace:"",
  // 		           AgentDNS:"",
  // 		           NodeName:"",
  // 		           TargetAddrs:nil,
  // 		           AgentPort:0,
  // 		           Concurrency:0,
  // 		           CreationPoolSize:0,
  // 		       },
  // 		       want: want{},
  // 		       checkFunc: defaultCheckFunc,
  // 		       beforeFunc: func(t *testing.T,) {
  // 		           t.Helper()
  // 		       },
  // 		       afterFunc: func(t *testing.T,) {
  // 		           t.Helper()
  // 		       },
  // 		   },
  // 		*/
  //
  // 		// TODO test cases
  // 		/*
  // 		   func() test {
  // 		       return test {
  // 		           name: "test_case_2",
  // 		           fields: fields {
  // 		           Discoverer:DiscovererClient{},
  // 		           AgentName:"",
  // 		           AgentNamespace:"",
  // 		           AgentDNS:"",
  // 		           NodeName:"",
  // 		           TargetAddrs:nil,
  // 		           AgentPort:0,
  // 		           Concurrency:0,
  // 		           CreationPoolSize:0,
  // 		           },
  // 		           want: want{},
  // 		           checkFunc: defaultCheckFunc,
  // 		           beforeFunc: func(t *testing.T,) {
  // 		               t.Helper()
  // 		           },
  // 		           afterFunc: func(t *testing.T,) {
  // 		               t.Helper()
  // 		           },
  // 		       }
  // 		   }(),
  // 		*/
  // 	}
  //
  // 	for _, tc := range tests {
  // 		test := tc
  // 		t.Run(test.name, func(tt *testing.T) {
  // 			tt.Parallel()
  // 			defer goleak.VerifyNone(tt, goleak.IgnoreCurrent())
  // 			if test.beforeFunc != nil {
  // 				test.beforeFunc(tt)
  // 			}
  // 			if test.afterFunc != nil {
  // 				defer test.afterFunc(tt)
  // 			}
  // 			checkFunc := test.checkFunc
  // 			if test.checkFunc == nil {
  // 				checkFunc = defaultCheckFunc
  // 			}
  // 			ic := &IndexCreation{
  // 				Discoverer:       test.fields.Discoverer,
  // 				AgentName:        test.fields.AgentName,
  // 				AgentNamespace:   test.fields.AgentNamespace,
  // 				AgentDNS:         test.fields.AgentDNS,
  // 				NodeName:         test.fields.NodeName,
  // 				TargetAddrs:      test.fields.TargetAddrs,
  // 				AgentPort:        test.fields.AgentPort,
  // 				Concurrency:      test.fields.Concurrency,
  // 				CreationPoolSize: test.fields.CreationPoolSize,
  // 			}
  //
  // 			got := ic.Bind()
  // 			if err := checkFunc(test.want, got); err != nil {
  // 				tt.Errorf("error = %v", err)
  // 			}
  // 		})
  // 	}
  // }
  