github.com/yimialmonte/fabric@v2.1.1+incompatible/core/handlers/decoration/decorator/decorator_test.go (about) 1 /* 2 Copyright IBM Corp. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package decorator 8 9 import ( 10 "testing" 11 12 "github.com/hyperledger/fabric-protos-go/peer" 13 "github.com/stretchr/testify/assert" 14 ) 15 16 func TestDecorator(t *testing.T) { 17 dec := NewDecorator() 18 in := &peer.ChaincodeInput{ 19 Args: [][]byte{{1, 2, 3}}, 20 } 21 out := dec.Decorate(nil, in) 22 assert.Equal(t, in, out) 23 }