* clear

* feat: Add everything

* fix: Commenht
This commit is contained in:
Prad Nukala
2025-10-03 14:45:52 -04:00
committed by GitHub
parent 43b4a11c06
commit 13e6c3e84d
1935 changed files with 655061 additions and 40058 deletions
+33
View File
@@ -0,0 +1,33 @@
package did
import (
"testing"
"github.com/stretchr/testify/require"
"google.golang.org/grpc"
"github.com/sonr-io/sonr/client/config"
)
// TestDIDClient tests DID module client functionality.
func TestDIDClient(t *testing.T) {
// Create mock connection
conn, _ := grpc.Dial("localhost:9090", grpc.WithInsecure())
cfg := config.LocalNetwork()
client := NewClient(conn, &cfg)
require.NotNil(t, client)
}
// TestBasicDIDFunctionality tests that we can create a client
func TestBasicDIDFunctionality(t *testing.T) {
// Just test that the package compiles and basic functions work
conn, _ := grpc.Dial("localhost:9090", grpc.WithInsecure())
cfg := config.LocalNetwork()
client := NewClient(conn, &cfg)
require.NotNil(t, client, "DID client should not be nil")
// Test that the client implements the Client interface
var _ Client = client
}