feat: complete cmpp platform phases 0-5
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package cmppadapter
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestNewClientUsesGocmpp(t *testing.T) {
|
||||
client := NewClient(ClientConfig{Version: Version30})
|
||||
if client.Raw() == nil {
|
||||
t.Fatal("expected gocmpp client")
|
||||
}
|
||||
}
|
||||
|
||||
func TestProtocolVersionMapping(t *testing.T) {
|
||||
if toProtocolType(Version20).String() == toProtocolType(Version30).String() {
|
||||
t.Fatal("expected CMPP 2.0 and 3.0 to map to different protocol types")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user