package publicerror

import "testing"

func TestLegacySubmissionUnknownNeverLeavesPublicBoundary(t *testing.T) {
	value := FromFields("upstream_submission_unknown", "legacy value", 500, true)
	if value.Code != "upstream_timeout" {
		t.Fatalf("public code=%q, want upstream_timeout", value.Code)
	}
}
