mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-12-04 05:43:27 +01:00
Later layers speak categories and records, and export needs nothing else. Ordering rows once in the exporter fixes Firefox history, written least visited first.
25 lines
441 B
Go
25 lines
441 B
Go
package types
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestBrowserKind_String(t *testing.T) {
|
|
tests := []struct {
|
|
kind BrowserKind
|
|
want string
|
|
}{
|
|
{Chromium, "chromium"},
|
|
{ChromiumYandex, "chromium-yandex"},
|
|
{ChromiumOpera, "chromium-opera"},
|
|
{Firefox, "firefox"},
|
|
{Safari, "safari"},
|
|
{BrowserKind(999), "unknown"},
|
|
}
|
|
for _, tt := range tests {
|
|
assert.Equal(t, tt.want, tt.kind.String())
|
|
}
|
|
}
|