NOTE: This specific implementation is a mock, although it passes tests it may be changed depending on feedback in #906
Description
Summary generated by Reviewpad on 17 Jul 23 12:37 UTC
This pull request adds a new interface registry with the following changes:
A new file interface_registry.go is added with 155 insertions.
A new file interface_registry_test.go is added with 166 insertions.
The existing file codec_test.proto is modified with 13 changes.
The interface_registry.go file contains the implementation of an interface registry that handles registration and marshaling/unmarshaling of interfaces. It provides methods for registering interfaces, registering implementations, marshaling interfaces into byte arrays, and unmarshaling byte arrays into interfaces.
The interface_registry_test.go file contains tests for the interface registry implementation. It tests the registration of interfaces, registration of implementations, marshaling of interfaces, and unmarshaling of interfaces.
The codec_test.proto file is modified by adding a new message TestProtoStructure2.
Issue
Fixes #906
Type of change
Please mark the relevant option(s):
[x] New feature, functionality or library
[ ] Bug fix
[ ] Code health or cleanup
[ ] Major breaking change
[ ] Documentation
[ ] Other
List of changes
Adds interface registry
Enables the registration of interfaces and their implementations
Enables the marshalling of interfaces
Enables the unmarshalling of marshalled interfaces back into the interface
Adds unit tests covering the above
Testing
[x] make develop_test; if any code changes were made
[x] make test_e2e on k8s LocalNet; if any code changes were made
[x] e2e-devnet-test passes tests on DevNet; if any code was changed
NOTE: This specific implementation is a mock, although it passes tests it may be changed depending on feedback in #906
Description
Summary generated by Reviewpad on 17 Jul 23 12:37 UTC
This pull request adds a new interface registry with the following changes:
interface_registry.go
is added with 155 insertions.interface_registry_test.go
is added with 166 insertions.codec_test.proto
is modified with 13 changes.The
interface_registry.go
file contains the implementation of an interface registry that handles registration and marshaling/unmarshaling of interfaces. It provides methods for registering interfaces, registering implementations, marshaling interfaces into byte arrays, and unmarshaling byte arrays into interfaces.The
interface_registry_test.go
file contains tests for the interface registry implementation. It tests the registration of interfaces, registration of implementations, marshaling of interfaces, and unmarshaling of interfaces.The
codec_test.proto
file is modified by adding a new messageTestProtoStructure2
.Issue
Fixes #906
Type of change
Please mark the relevant option(s):
List of changes
Testing
make develop_test
; if any code changes were mademake test_e2e
on k8s LocalNet; if any code changes were madee2e-devnet-test
passes tests on DevNet; if any code was changedRequired Checklist
godoc
format comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*
if I updatedshared/*
README(s)