aboutsummaryrefslogtreecommitdiff
path: root/tests/dedo.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dedo.go')
-rw-r--r--tests/dedo.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/dedo.go b/tests/dedo.go
index 4cfde1e..7fad22c 100644
--- a/tests/dedo.go
+++ b/tests/dedo.go
@@ -118,6 +118,16 @@ func test_Open() {
g.TestStart("Open()")
}
+func test_commands() {
+ g.TestStart("commands")
+
+ g.Testing("ensuremap key and name are in sync", func() {
+ for key, command := range commands {
+ g.TAssertEqual(command.name, key)
+ }
+ })
+}
+
// Ensure that opening a file that is not a Bolt database returns ErrInvalid.
func TestOpen_ErrInvalid(t *testing.T) {
return
@@ -4371,7 +4381,6 @@ func tempfile() string {
if err := os.Remove(f.Name()); err != nil {
panic(err)
}
- // println(f.Name())
return f.Name()
}