Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMarshalUnmarshalMSS (0.2 sec)

  1. internal/grid/types_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package grid
    
    import (
    	"reflect"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalMSS(t *testing.T) {
    	v := MSS{"abc": "def", "ghi": "jkl"}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	var v2 MSS
    	left, err := v2.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top