<|start_filename|>pkg/useragent/uname_unix_test.go<|end_filename|>
// +build !windows

package useragent

import (
	"fmt"
	"testing"

	"github.com/stretchr/testify/require"
)

func TestUnameNotEmpty(t *testing.T) {
	u := getUname()
	t.Log(fmt.Sprintf("%x", u)) // For NULL trim paranoia
	require.NotEmpty(t, u)
}

func TestTrimNulls(t *testing.T) {
	input := [256]byte{0xff}
	t.Log(input)
	output := trimNulls(input[:])
	t.Log(output)
	require.NotEqual(t, len(input), len(output))
}


<|start_filename|>.vscode/extensions.json<|end_filename|>
{
    "recommendations": [
        // Go Language plugins (~required)
        "ms-vscode.go",

        // Highly recommended
        "eamodio.gitlens",
        "ziyasal.vscode-open-in-github",
        "EditorConfig.editorconfig",
    ]
}
