コード例 #1
0
ファイル: utils_test.go プロジェクト: elodina/stack-deploy
func decodeErr(t *testing.T, response siesta.Response, bytes []byte, expected *siesta.DecodingError) {
	decoder := siesta.NewBinaryDecoder(bytes)
	err := response.Read(decoder)
	assert(t, err.Error(), expected.Error())
	assert(t, err.Reason(), expected.Reason())
}
コード例 #2
0
ファイル: utils_test.go プロジェクト: elodina/stack-deploy
func decode(t *testing.T, response siesta.Response, bytes []byte) {
	decoder := siesta.NewBinaryDecoder(bytes)
	err := response.Read(decoder)
	assert(t, err, (*siesta.DecodingError)(nil))
}