<commit_before><commit_msg>add rm operation test<commit_after>package operations

import (
	"github.com/matsu-chara/gol/kvs"
	"os"
	"testing"
)

func TestCmdRm(t *testing.T) {
	testFile := tempTest("add")
	defer os.Remove(testFile)
	initDb(testFile)

	RunRm(testFile, "k1")

	db, err := kvs.Open(testFile)
	if err != nil {
		t.Errorf("kvs open failed %s", err)
	}
	result, isExists := db.Get("k1")
	if isExists || result != nil {
		t.Error("key_add was found. result = %s", result)
	}
}
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.00411522633744856, 'mean_word_length': 4.351648351648351, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3069068', 'n_tokens_mistral': 204, 'n_tokens_neox': 197, 'n_words': 43}