testmark-go

doctest_test.go

package doctest_test

import (
	"testing"

	"github.com/warpfork/go-testmark/v2/doctest"
)

func TestDocTestCreation(t *testing.T) {
	// Test the Tester struct creation
	tester := doctest.New()
	if tester == nil {
		t.Fatal("New() returned nil")
	}

	if tester.PackageTemplate == "" {
		t.Error("PackageTemplate should not be empty")
	}
}

func TestDocTestSkip(t *testing.T) {
	// All actual testing functionality is disabled pending redesign
	t.Skip("doctest functionality disabled pending API redesign")
}

v2/doctest/doctest_test.go · 508 B · b9084569f7