/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/kbfs/libkbfs/unknown_fields_test.go
27 строк
723 B
John Zila
blind replace kbfs to new repo
14 дек 2018, 04:15
14 дек 2018, 04:15
b43d0cd
Код
Авторство
О чём код?
// Copyright 2016 Keybase Inc. All rights reserved. // Use of this source code is governed by a BSD // license that can be found in the LICENSE file. package libkbfs import ( "testing" "github.com/keybase/client/go/kbfs/kbfscodec" ) // testStructUnknownFields calls TestStructUnknownFields with codecs // with extensions registered. func testStructUnknownFields(t *testing.T, sFuture kbfscodec.FutureStruct) { cFuture := kbfscodec.NewMsgpack() registerOpsFuture(cFuture) cCurrent := kbfscodec.NewMsgpack() RegisterOps(cCurrent) cCurrentKnownOnly := kbfscodec.NewMsgpackNoUnknownFields() RegisterOps(cCurrentKnownOnly) kbfscodec.TestStructUnknownFields( t, cFuture, cCurrent, cCurrentKnownOnly, sFuture) }