MCPcopy
hub / github.com/grafana/tempo / createTestJob

Function createTestJob

modules/backendscheduler/work/work_sharded_test.go:785–796  ·  view source on GitHub ↗
(id string, jobType tempopb.JobType)

Source from the content-addressed store, hash-verified

783}
784
785func createTestJob(id string, jobType tempopb.JobType) *Job {
786 return &Job{
787 ID: id,
788 Type: jobType,
789 JobDetail: tempopb.JobDetail{
790 Tenant: "test-tenant",
791 Compaction: &tempopb.CompactionDetail{
792 Input: []string{"block1", "block2"},
793 },
794 },
795 }
796}

Callers 12

TestShardedRoundTripFunction · 0.85
TestAddJobFunction · 0.85
TestJobOperationsFunction · 0.85
TestListJobsFunction · 0.85
TestGetJobForWorkerFunction · 0.85
TestPruneFunction · 0.85
TestShardingMethodsFunction · 0.85
TestLocalFileOperationsFunction · 0.85
TestConcurrencyFunction · 0.85
TestFullMarshalUnmarshalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected