aboutsummaryrefslogtreecommitdiff
path: root/ber/class_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-09-26 12:04:34 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-09-26 12:04:34 +0200
commit54caa4e7e085e177ff05b719ae247d21fe8c257e (patch)
tree363400fe1c6c1e7b696c72caaabc4882756355fa /ber/class_test.go
parent1fcefc99a82bac6ce725b6f11277e4aa291a7f51 (diff)
Replace with new implementation
Diffstat (limited to 'ber/class_test.go')
-rw-r--r--ber/class_test.go36
1 files changed, 0 insertions, 36 deletions
diff --git a/ber/class_test.go b/ber/class_test.go
deleted file mode 100644
index 2eac220..0000000
--- a/ber/class_test.go
+++ /dev/null
@@ -1,36 +0,0 @@
-package ber
-
-import (
- "bytes"
- "fmt"
-)
-
-var berTestData = []byte{
- 0x02, 0x04, 0x0A, 0x30,
- 0x40, 0x61, 0x7E,
- 0x80, 0xA1, 0xBE,
-}
-
-func ExampleIdent() {
- for _, test := range berTestData {
- c, k, t := Ident(bytes.NewBuffer([]byte{test}))
- if c == classUniversal {
- fmt.Printf("%#x: %v %v %v\n",
- test, c, k, t)
- } else {
- fmt.Printf("%#x: %v %v %#x\n",
- test, c, k, byte(t))
- }
- }
- // Output:
- // 0x2: Universal Primitive Integer
- // 0x4: Universal Primitive Octet String
- // 0xa: Universal Primitive Enumerated
- // 0x30: Universal Constructed Sequence (Of)
- // 0x40: Application Primitive 0x0
- // 0x61: Application Constructed 0x1
- // 0x7e: Application Constructed 0x1e
- // 0x80: Context-specific Primitive 0x0
- // 0xa1: Context-specific Constructed 0x1
- // 0xbe: Context-specific Constructed 0x1e
-}