<commit_before>// +build darwin

package store

import (
	"fmt"
	"io/ioutil"
	"os"
	"runtime"
	"sort"
	"strings"
	"testing"

	"github.com/adamdecaf/cert-manage/tools/file"
)

func TestStoreDarwin__Backup(t *testing.T) {
	dir, err := getCertManageDir()
	if err != nil {
		t.Error(err)
	}
	namesBefore, err := ioutil.ReadDir(dir)
	if err != nil {
		t.Error(err)<commit_msg>store/darwin: don't fail test if cert-manage backup dir isn't there<commit_after>// +build darwin

package store

import (
	"fmt"
	"io/ioutil"
	"os"
	"runtime"
	"sort"
	"strings"
	"testing"

	"github.com/adamdecaf/cert-manage/tools/file"
)

func TestStoreDarwin__Backup(t *testing.T) {
	dir, err := getCertManageDir()
	if err != nil {
		t.Error(err)
	}
	namesBefore, err := ioutil.ReadDir(dir)
	if err != nil && !os.IsNotExist(err) {
		t.Error(err)
{'fraction_non_alphanumeric': 0.15995115995115994, 'fraction_numerical': 0.0, 'mean_word_length': 4.030674846625767, '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': '1836068', 'n_tokens_mistral': 362, 'n_tokens_neox': 347, 'n_words': 71}