package store

import (
	"fmt"
	"testing"

	"github.com/pingcap/test-infra/common/model"
)

func TestToPlanReport(t *testing.T) {
	plan := model.TestPlanExecution{ID: 1, PlanIDAndName: model.PlanIDAndName{Name: "plan1"}}
	var startAt model.Timestamp = 0
	var completeAt model.Timestamp = 1
	cases := []*model.TestCaseExecution{{CaseIDAndName: model.CaseIDAndName{Name: "case1"}, StartedAt: &startAt, CompletedAt: &completeAt}}
	report := toPlanReport(plan, cases)
	fmt.Printf("%v", report)
}
