summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/prometheus/procfs/xfrm_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-04-16 05:37:14 -0700
committerJoram Wilander <jwawilander@gmail.com>2018-04-16 08:37:14 -0400
commit6e2cb00008cbf09e556b00f87603797fcaa47e09 (patch)
tree3c0eb55ff4226a3f024aad373140d1fb860a6404 /vendor/github.com/prometheus/procfs/xfrm_test.go
parentbf24f51c4e1cc6286885460672f7f449e8c6f5ef (diff)
downloadchat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.gz
chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.bz2
chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.zip
Depenancy upgrades and movign to dep. (#8630)
Diffstat (limited to 'vendor/github.com/prometheus/procfs/xfrm_test.go')
-rw-r--r--vendor/github.com/prometheus/procfs/xfrm_test.go66
1 files changed, 0 insertions, 66 deletions
diff --git a/vendor/github.com/prometheus/procfs/xfrm_test.go b/vendor/github.com/prometheus/procfs/xfrm_test.go
deleted file mode 100644
index 5918c390e..000000000
--- a/vendor/github.com/prometheus/procfs/xfrm_test.go
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2017 Prometheus Team
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-
-package procfs
-
-import (
- "testing"
-)
-
-func TestXfrmStats(t *testing.T) {
- xfrmStats, err := FS("fixtures").NewXfrmStat()
- if err != nil {
- t.Fatal(err)
- }
-
- for _, test := range []struct {
- name string
- want int
- got int
- }{
- {name: "XfrmInError", want: 1, got: xfrmStats.XfrmInError},
- {name: "XfrmInBufferError", want: 2, got: xfrmStats.XfrmInBufferError},
- {name: "XfrmInHdrError", want: 4, got: xfrmStats.XfrmInHdrError},
- {name: "XfrmInNoStates", want: 3, got: xfrmStats.XfrmInNoStates},
- {name: "XfrmInStateProtoError", want: 40, got: xfrmStats.XfrmInStateProtoError},
- {name: "XfrmInStateModeError", want: 100, got: xfrmStats.XfrmInStateModeError},
- {name: "XfrmInStateSeqError", want: 6000, got: xfrmStats.XfrmInStateSeqError},
- {name: "XfrmInStateExpired", want: 4, got: xfrmStats.XfrmInStateExpired},
- {name: "XfrmInStateMismatch", want: 23451, got: xfrmStats.XfrmInStateMismatch},
- {name: "XfrmInStateInvalid", want: 55555, got: xfrmStats.XfrmInStateInvalid},
- {name: "XfrmInTmplMismatch", want: 51, got: xfrmStats.XfrmInTmplMismatch},
- {name: "XfrmInNoPols", want: 65432, got: xfrmStats.XfrmInNoPols},
- {name: "XfrmInPolBlock", want: 100, got: xfrmStats.XfrmInPolBlock},
- {name: "XfrmInPolError", want: 10000, got: xfrmStats.XfrmInPolError},
- {name: "XfrmOutError", want: 1000000, got: xfrmStats.XfrmOutError},
- {name: "XfrmOutBundleGenError", want: 43321, got: xfrmStats.XfrmOutBundleGenError},
- {name: "XfrmOutBundleCheckError", want: 555, got: xfrmStats.XfrmOutBundleCheckError},
- {name: "XfrmOutNoStates", want: 869, got: xfrmStats.XfrmOutNoStates},
- {name: "XfrmOutStateProtoError", want: 4542, got: xfrmStats.XfrmOutStateProtoError},
- {name: "XfrmOutStateModeError", want: 4, got: xfrmStats.XfrmOutStateModeError},
- {name: "XfrmOutStateSeqError", want: 543, got: xfrmStats.XfrmOutStateSeqError},
- {name: "XfrmOutStateExpired", want: 565, got: xfrmStats.XfrmOutStateExpired},
- {name: "XfrmOutPolBlock", want: 43456, got: xfrmStats.XfrmOutPolBlock},
- {name: "XfrmOutPolDead", want: 7656, got: xfrmStats.XfrmOutPolDead},
- {name: "XfrmOutPolError", want: 1454, got: xfrmStats.XfrmOutPolError},
- {name: "XfrmFwdHdrError", want: 6654, got: xfrmStats.XfrmFwdHdrError},
- {name: "XfrmOutStateInvaliad", want: 28765, got: xfrmStats.XfrmOutStateInvalid},
- {name: "XfrmAcquireError", want: 24532, got: xfrmStats.XfrmAcquireError},
- {name: "XfrmInStateInvalid", want: 55555, got: xfrmStats.XfrmInStateInvalid},
- {name: "XfrmOutError", want: 1000000, got: xfrmStats.XfrmOutError},
- } {
- if test.want != test.got {
- t.Errorf("Want %s %d, have %d", test.name, test.want, test.got)
- }
- }
-}