Files
AIDDSPandGitHub f76ac05989 test(qa): image generation consistency suite (#151)
Adds qa/imagegen: image metadata validation (MIME sniffing, exact dimensions), a contract check on the fal submit body and the OpenAI images reply, and live lanes for resolution, prompt adherence, character consistency and text rendering. Offline tests run in CI; live lanes skip without an opt-in or key.

Fixes #131

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
2026-11-12 19:19:32 -08:00

32 lines
880 B
Go

// Copyright 2023-2026 Hanzo AI Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package imagegen
import (
"os"
"testing"
)
func TestMain(m *testing.M) {
code := m.Run()
if err := live.MaybeWrite(); err != nil {
_, _ = os.Stderr.WriteString("report write failed: " + err.Error() + "\n")
if code == 0 {
code = 1
}
}
os.Exit(code)
}