github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/kbfs/kbfsmd/unknown_fields_test.go (about)

     1  // Copyright 2017 Keybase Inc. All rights reserved.
     2  // Use of this source code is governed by a BSD
     3  // license that can be found in the LICENSE file.
     4  
     5  package kbfsmd
     6  
     7  import (
     8  	"testing"
     9  
    10  	"github.com/keybase/client/go/kbfs/kbfscodec"
    11  )
    12  
    13  // testStructUnknownFields calls TestStructUnknownFields with codecs
    14  // with extensions registered.
    15  func testStructUnknownFields(t *testing.T, sFuture kbfscodec.FutureStruct) {
    16  	cFuture := kbfscodec.NewMsgpack()
    17  	cCurrent := kbfscodec.NewMsgpack()
    18  	cCurrentKnownOnly := kbfscodec.NewMsgpackNoUnknownFields()
    19  	kbfscodec.TestStructUnknownFields(
    20  		t, cFuture, cCurrent, cCurrentKnownOnly, sFuture)
    21  }