feat(reachview): GetModemConfiguration func

This commit is contained in:
2025-07-08 09:00:13 +02:00
parent 1fcf748310
commit daadb9b678
10 changed files with 160 additions and 17 deletions

View File

@ -377,6 +377,29 @@ var testCases = []operationTestCase{
t.Logf("Message : %+v", taskMsg)
},
},
{
Name: "GetModemConfiguration",
Run: func(t *testing.T, ops protocol.Operations) {
ctx := context.Background()
if err := ops.Connect(ctx); err != nil {
t.Errorf("%+v", errors.WithStack(err))
return
}
defer func() {
if err := ops.Close(ctx); err != nil {
t.Errorf("%+v", errors.WithStack(err))
}
}()
config, err := ops.GetModemConfiguration(ctx)
if err != nil {
t.Errorf("%+v", errors.WithStack(err))
return
}
t.Logf("Modem configuration : %+v", config)
},
},
}
func TestOperations(t *testing.T, opsFactory OperationsFactoryFunc) {

View File

@ -1,16 +0,0 @@
package testsuite
import (
"testing"
"forge.cadoles.com/cadoles/go-emlid/reach/client"
"forge.cadoles.com/cadoles/go-emlid/reach/client/protocol"
)
func TestReachOperations(t *testing.T) {
opsFactory := func(addr string) (protocol.Operations, error) {
return client.NewClient(addr), nil
}
TestOperations(t, opsFactory)
}