Add compatibility aliases documented in specs but missing from code: - node: NewNodeManagerWithPaths, NewPeerRegistryWithPath (deprecated constructor aliases), RegisterWithTransport (deprecated method alias), ConnectedPeers (count alias), GetLogsPayload (type alias) - levin: Short-form Value constructors (Uint64Val, StringVal, ObjectVal, etc.) matching spec naming - logging: WithComponent, GetLevel, GetGlobal (deprecated method aliases) - ueps: TagCurrentLay, TagTargetLay (short-form tag constant aliases) All aliases delegate to the canonical AX-compliant names. Tests cover every alias with round-trip verification where applicable. Co-Authored-By: Virgil <virgil@lethean.io>
14 lines
290 B
Go
14 lines
290 B
Go
package ueps
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestTagAliases_Good(t *testing.T) {
|
|
assert.Equal(t, TagCurrentLayer, TagCurrentLay)
|
|
assert.Equal(t, TagTargetLayer, TagTargetLay)
|
|
assert.Equal(t, 0x02, TagCurrentLay)
|
|
assert.Equal(t, 0x03, TagTargetLay)
|
|
}
|