Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#170 Change from CreateSzXxx to CreateXxx #171

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning].

-

## [0.8.4] - 2024-12-10

### Changed in 0.8.4

- Update dependencies

## [0.8.3] - 2024-10-30

### Changed in 0.8.3
Expand Down
16 changes: 8 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ require (
github.com/senzing-garage/go-logging v1.5.1
github.com/senzing-garage/go-messaging v1.5.2
github.com/senzing-garage/go-observing v0.3.3
github.com/senzing-garage/sz-sdk-go v0.14.3
github.com/senzing-garage/sz-sdk-go v0.14.4
github.com/stretchr/testify v1.10.0
)

require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/kr/text v0.2.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/sys v0.26.0 // indirect
golang.org/x/text v0.19.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38 // indirect
google.golang.org/grpc v1.67.1 // indirect
google.golang.org/protobuf v1.35.1 // indirect
golang.org/x/exp v0.0.0-20241210194714-1829a127f884 // indirect
golang.org/x/net v0.32.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/text v0.21.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect
google.golang.org/grpc v1.68.1 // indirect
google.golang.org/protobuf v1.35.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
34 changes: 18 additions & 16 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ github.com/aquilax/truncate v1.0.0/go.mod h1:BeMESIDMlvlS3bmg4BVvBbbZUNwWtS8uzYP
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
Expand All @@ -21,24 +23,24 @@ github.com/senzing-garage/go-messaging v1.5.2 h1:lU9W2HV3zKQsDU9Vs7lwe/C/LbHVCMn
github.com/senzing-garage/go-messaging v1.5.2/go.mod h1:iEWGVuDGWjolIkwLqnn9oJS7ifF3aoZjTtI44tf1gWQ=
github.com/senzing-garage/go-observing v0.3.3 h1:AhQYgOG012sDZtWXYcXVAaS5qEoDjlWmPYJDVCUZ/g0=
github.com/senzing-garage/go-observing v0.3.3/go.mod h1:qFUi5Dwb6vmd7izTZGjGbWKUGRHzWzsgbsX3oNSD198=
github.com/senzing-garage/sz-sdk-go v0.14.3 h1:vcTJDn84bTGuFt2kWw8jDf4FfgUSePB+UJg3C2cPIBk=
github.com/senzing-garage/sz-sdk-go v0.14.3/go.mod h1:rj9HH6qo+kW5PsFSRnEIUQqDZBE34gZjQGsDvAxw6dI=
github.com/senzing-garage/sz-sdk-go v0.14.4 h1:sw4GokZhuIvkoBf/QYyjolD/Uz5IxCQ+Pu2KVUlTSsc=
github.com/senzing-garage/sz-sdk-go v0.14.4/go.mod h1:4VXZYdA6Fg4GkTFsd2HsPxxd3dMRadLD4An4BbhcvWk=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c h1:7dEasQXItcW1xKJ2+gg5VOiBnqWrJc+rq0DPKyvvdbY=
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c/go.mod h1:NQtJDoLvd6faHhE7m4T/1IY708gDefGGjR/iUW8yQQ8=
golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4=
golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU=
golang.org/x/sys v0.26.0 h1:KHjCJyddX0LoSTb3J+vWpupP9p0oznkqVk/IfjymZbo=
golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM=
golang.org/x/text v0.19.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38 h1:zciRKQ4kBpFgpfC5QQCVtnnNAcLIqweL7plyZRQHVpI=
google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38/go.mod h1:GX3210XPVPUjJbTUbvwI8f2IpZDMZuPJWDzDuebbviI=
google.golang.org/grpc v1.67.1 h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E=
google.golang.org/grpc v1.67.1/go.mod h1:1gLDyUQU7CTLJI90u3nXZ9ekeghjeM7pTDZlqFNg2AA=
google.golang.org/protobuf v1.35.1 h1:m3LfL6/Ca+fqnjnlqQXNpFPABW1UD7mjh8KO2mKFytA=
google.golang.org/protobuf v1.35.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
golang.org/x/exp v0.0.0-20241210194714-1829a127f884 h1:Y/Mj/94zIQQGHVSv1tTtQBDaQaJe62U9bkDZKKyhPCU=
golang.org/x/exp v0.0.0-20241210194714-1829a127f884/go.mod h1:qj5a5QZpwLU2NLQudwIN5koi3beDhSAlJwa67PuM98c=
golang.org/x/net v0.32.0 h1:ZqPmj8Kzc+Y6e0+skZsuACbx+wzMgo5MQsJh9Qd6aYI=
golang.org/x/net v0.32.0/go.mod h1:CwU0IoeOlnQQWJ6ioyFrfRuomB8GKF6KbYXZVyeXNfs=
golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 h1:8ZmaLZE4XWrtU3MyClkYqqtl6Oegr3235h7jxsDyqCY=
google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576/go.mod h1:5uTbfoYQed2U9p3KIj2/Zzm02PYhndfdmML0qC3q3FU=
google.golang.org/grpc v1.68.1 h1:oI5oTa11+ng8r8XMMN7jAOmWfPZWbYpCFaMUTACxkM0=
google.golang.org/grpc v1.68.1/go.mod h1:+q1XYFJjShcqn0QZHvCyeR4CXPA+llXIeUIfIe00waw=
google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io=
google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
Expand Down
20 changes: 10 additions & 10 deletions szabstractfactory/szabstractfactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type Szabstractfactory struct {
// ----------------------------------------------------------------------------

/*
Method CreateSzConfig returns an SzConfig object
Method CreateConfig returns an SzConfig object
implemented to use the Senzing native C binary, libSz.so.

Input
Expand All @@ -33,14 +33,14 @@ Input
Output
- An SzConfig object.
*/
func (factory *Szabstractfactory) CreateSzConfig(ctx context.Context) (senzing.SzConfig, error) {
func (factory *Szabstractfactory) CreateConfig(ctx context.Context) (senzing.SzConfig, error) {
_ = ctx
result := &szconfig.Szconfig{}
return result, nil
}

/*
Method CreateSzConfigManager returns an SzConfigManager object
Method CreateConfigManager returns an SzConfigManager object
implemented to use the Senzing native C binary, libSz.so.

Input
Expand All @@ -49,14 +49,14 @@ Input
Output
- An SzConfigManager object.
*/
func (factory *Szabstractfactory) CreateSzConfigManager(ctx context.Context) (senzing.SzConfigManager, error) {
func (factory *Szabstractfactory) CreateConfigManager(ctx context.Context) (senzing.SzConfigManager, error) {
_ = ctx
result := &szconfigmanager.Szconfigmanager{}
return result, nil
}

/*
Method CreateSzDiagnostic returns an SzDiagnostic object
Method CreateDiagnostic returns an SzDiagnostic object
implemented to use the Senzing native C binary, libSz.so.

Input
Expand All @@ -65,14 +65,14 @@ Input
Output
- An SzDiagnostic object.
*/
func (factory *Szabstractfactory) CreateSzDiagnostic(ctx context.Context) (senzing.SzDiagnostic, error) {
func (factory *Szabstractfactory) CreateDiagnostic(ctx context.Context) (senzing.SzDiagnostic, error) {
_ = ctx
result := &szdiagnostic.Szdiagnostic{}
return result, nil
}

/*
Method CreateSzEngine returns an SzEngine object
Method CreateEngine returns an SzEngine object
implemented to use the Senzing native C binary, libSz.so.

Input
Expand All @@ -81,14 +81,14 @@ Input
Output
- An SzEngine object.
*/
func (factory *Szabstractfactory) CreateSzEngine(ctx context.Context) (senzing.SzEngine, error) {
func (factory *Szabstractfactory) CreateEngine(ctx context.Context) (senzing.SzEngine, error) {
_ = ctx
result := &szengine.Szengine{}
return result, nil
}

/*
Method CreateSzProduct returns an SzProduct object
Method CreateProduct returns an SzProduct object
implemented to use the Senzing native C binary, libSz.so.

Input
Expand All @@ -97,7 +97,7 @@ Input
Output
- An SzProduct object.
*/
func (factory *Szabstractfactory) CreateSzProduct(ctx context.Context) (senzing.SzProduct, error) {
func (factory *Szabstractfactory) CreateProduct(ctx context.Context) (senzing.SzProduct, error) {
_ = ctx
result := &szproduct.Szproduct{}
return result, nil
Expand Down
20 changes: 10 additions & 10 deletions szabstractfactory/szabstractfactory_examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,59 +13,59 @@ import (
// Interface methods - Examples for godoc documentation
// ----------------------------------------------------------------------------

func ExampleSzabstractfactory_CreateSzConfig() {
func ExampleSzabstractfactory_CreateConfig() {
// For more information, visit https://github.com/senzing-garage/sz-sdk-go-mock/blob/main/szabstractfactory/szabstractfactory_examples_test.go
ctx := context.TODO()
szAbstractFactory := getSzAbstractFactoryExample(ctx)
szConfig, err := szAbstractFactory.CreateSzConfig(ctx)
szConfig, err := szAbstractFactory.CreateConfig(ctx)
if err != nil {
fmt.Println(err)
}
_ = szConfig // szConfig can now be used.
// Output:
}

func ExampleSzabstractfactory_CreateSzConfigManager() {
func ExampleSzabstractfactory_CreateConfigManager() {
// For more information, visit https://github.com/senzing-garage/sz-sdk-go-mock/blob/main/szabstractfactory/szabstractfactory_examples_test.go
ctx := context.TODO()
szAbstractFactory := getSzAbstractFactoryExample(ctx)
szConfigManager, err := szAbstractFactory.CreateSzConfigManager(ctx)
szConfigManager, err := szAbstractFactory.CreateConfigManager(ctx)
if err != nil {
fmt.Println(err)
}
_ = szConfigManager // szConfigManager can now be used.
// Output:
}

func ExampleSzabstractfactory_CreateSzDiagnostic() {
func ExampleSzabstractfactory_CreateDiagnostic() {
// For more information, visit https://github.com/senzing-garage/sz-sdk-go-mock/blob/main/szabstractfactory/szabstractfactory_examples_test.go
ctx := context.TODO()
szAbstractFactory := getSzAbstractFactoryExample(ctx)
szDiagnostic, err := szAbstractFactory.CreateSzDiagnostic(ctx)
szDiagnostic, err := szAbstractFactory.CreateDiagnostic(ctx)
if err != nil {
fmt.Println(err)
}
_ = szDiagnostic // szDiagnostic can now be used.
// Output:
}

func ExampleSzabstractfactory_CreateSzEngine() {
func ExampleSzabstractfactory_CreateEngine() {
// For more information, visit https://github.com/senzing-garage/sz-sdk-go-mock/blob/main/szabstractfactory/szabstractfactory_examples_test.go
ctx := context.TODO()
szAbstractFactory := getSzAbstractFactoryExample(ctx)
szEngine, err := szAbstractFactory.CreateSzEngine(ctx)
szEngine, err := szAbstractFactory.CreateEngine(ctx)
if err != nil {
fmt.Println(err)
}
_ = szEngine // szEngine can now be used.
// Output:
}

func ExampleSzabstractfactory_CreateSzProduct() {
func ExampleSzabstractfactory_CreateProduct() {
// For more information, visit https://github.com/senzing-garage/sz-sdk-go-mock/blob/main/szabstractfactory/szabstractfactory_examples_test.go
ctx := context.TODO()
szAbstractFactory := getSzAbstractFactoryExample(ctx)
szProduct, err := szAbstractFactory.CreateSzProduct(ctx)
szProduct, err := szAbstractFactory.CreateProduct(ctx)
if err != nil {
fmt.Println(err)
}
Expand Down
22 changes: 11 additions & 11 deletions szabstractfactory/szabstractfactory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const (
// Interface methods - test
// ----------------------------------------------------------------------------

func TestSzAbstractFactory_CreateSzConfig(test *testing.T) {
func TestSzAbstractFactory_CreateConfig(test *testing.T) {
ctx := context.TODO()
szAbstractFactory := getTestObject(ctx, test)
defer func() { handleError(szAbstractFactory.Destroy(ctx)) }()
szConfig, err := szAbstractFactory.CreateSzConfig(ctx)
szConfig, err := szAbstractFactory.CreateConfig(ctx)
require.NoError(test, err)
configHandle, err := szConfig.CreateConfig(ctx)
require.NoError(test, err)
Expand All @@ -35,44 +35,44 @@ func TestSzAbstractFactory_CreateSzConfig(test *testing.T) {
printActual(test, dataSources)
}

func TestSzAbstractFactory_CreateSzConfigManager(test *testing.T) {
func TestSzAbstractFactory_CreateConfigManager(test *testing.T) {
ctx := context.TODO()
szAbstractFactory := getTestObject(ctx, test)
defer func() { handleError(szAbstractFactory.Destroy(ctx)) }()
szConfigManager, err := szAbstractFactory.CreateSzConfigManager(ctx)
szConfigManager, err := szAbstractFactory.CreateConfigManager(ctx)
require.NoError(test, err)
configList, err := szConfigManager.GetConfigs(ctx)
require.NoError(test, err)
printActual(test, configList)
}

func TestSzAbstractFactory_CreateSzDiagnostic(test *testing.T) {
func TestSzAbstractFactory_CreateDiagnostic(test *testing.T) {
ctx := context.TODO()
szAbstractFactory := getTestObject(ctx, test)
defer func() { handleError(szAbstractFactory.Destroy(ctx)) }()
szDiagnostic, err := szAbstractFactory.CreateSzDiagnostic(ctx)
szDiagnostic, err := szAbstractFactory.CreateDiagnostic(ctx)
require.NoError(test, err)
result, err := szDiagnostic.CheckDatastorePerformance(ctx, 1)
require.NoError(test, err)
printActual(test, result)
}

func TestSzAbstractFactory_CreateSzEngine(test *testing.T) {
func TestSzAbstractFactory_CreateEngine(test *testing.T) {
ctx := context.TODO()
szAbstractFactory := getTestObject(ctx, test)
defer func() { handleError(szAbstractFactory.Destroy(ctx)) }()
szEngine, err := szAbstractFactory.CreateSzEngine(ctx)
szEngine, err := szAbstractFactory.CreateEngine(ctx)
require.NoError(test, err)
stats, err := szEngine.GetStats(ctx)
require.NoError(test, err)
printActual(test, stats)
}

func TestSzAbstractFactory_CreateSzProduct(test *testing.T) {
func TestSzAbstractFactory_CreateProduct(test *testing.T) {
ctx := context.TODO()
szAbstractFactory := getTestObject(ctx, test)
defer func() { handleError(szAbstractFactory.Destroy(ctx)) }()
szProduct, err := szAbstractFactory.CreateSzProduct(ctx)
szProduct, err := szAbstractFactory.CreateProduct(ctx)
require.NoError(test, err)
version, err := szProduct.GetVersion(ctx)
require.NoError(test, err)
Expand All @@ -89,7 +89,7 @@ func TestSzAbstractFactory_Reinitialize(test *testing.T) {
ctx := context.TODO()
szAbstractFactory := getTestObject(ctx, test)
defer func() { handleError(szAbstractFactory.Destroy(ctx)) }()
szConfigManager, err := szAbstractFactory.CreateSzConfigManager(ctx)
szConfigManager, err := szAbstractFactory.CreateConfigManager(ctx)
require.NoError(test, err)
configID, err := szConfigManager.GetDefaultConfigID(ctx)
require.NoError(test, err)
Expand Down
Loading