package controlplane

import (
	"path/filepath"
	"runtime"
	"testing"
)

func controlplaneTestPackFixtureDir(t *testing.T, name string) string {
	t.Helper()

	_, currentFile, _, ok := runtime.Caller(0)
	if !ok {
		t.Fatal("resolve current test fixture helper path")
	}
	return filepath.Clean(filepath.Join(filepath.Dir(currentFile), "testdata", "packs", name))
}
