Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

263 B
Raw Blame
package core

import (
	"testing"

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

func TestCommandRequiresArgv(t *testing.T) {
	require.Error(t, Command{Cwd: "/tmp"}.Validate())
	require.NoError(t, Command{Argv: []string{"/bin/echo", "hi"}, Cwd: "/tmp"}.Validate())
}