mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 03:01:11 +00:00
This caused a dependency chain reaction (sigh):
* All the k8s packages had to be fetched again. This in turn required:
* Pining github.com/docker/docker/pkg/parsers to
0f5c9d301b9b1cca66b3ea0f9dec3b5317d3686d to cirvumvent
https://github.com/kubernetes/kubernetes/issues/18774
* Update github.com/juju/ratelimit
* Make probe/kubernetes/client.go comply with API changes.
25 lines
496 B
Go
25 lines
496 B
Go
//+build x,codecgen
|
|
|
|
package codec
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func _TestCodecgenJson1(t *testing.T) {
|
|
// This is just a simplistic test for codecgen.
|
|
// It is typically disabled. We only enable it for debugging purposes.
|
|
const callCodecgenDirect bool = true
|
|
v := newTestStruc(2, false, !testSkipIntf, false)
|
|
var bs []byte
|
|
e := NewEncoderBytes(&bs, testJsonH)
|
|
if callCodecgenDirect {
|
|
v.CodecEncodeSelf(e)
|
|
e.w.atEndOfEncode()
|
|
} else {
|
|
e.MustEncode(v)
|
|
}
|
|
fmt.Printf("%s\n", bs)
|
|
}
|