mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-07 22:54:17 -05:00
* Migrate Prysm repo to Offchain Labs organization ahead of Pectra upgrade v6 * Replace prysmaticlabs with OffchainLabs on general markdowns * Update mock * Gazelle and add mock.go to excluded generated mock file
17 lines
332 B
Go
17 lines
332 B
Go
package server
|
|
|
|
import (
|
|
"errors"
|
|
"testing"
|
|
|
|
"github.com/OffchainLabs/prysm/v6/testing/assert"
|
|
)
|
|
|
|
func TestDecodeError(t *testing.T) {
|
|
e := errors.New("not a number")
|
|
de := NewDecodeError(e, "Z")
|
|
de = NewDecodeError(de, "Y")
|
|
de = NewDecodeError(de, "X")
|
|
assert.Equal(t, "could not decode X.Y.Z: not a number", de.Error())
|
|
}
|