MCPcopy
hub / github.com/go-task/task / IsUpToDate

Method IsUpToDate

internal/fingerprint/checker.go:11–11  ·  view source on GitHub ↗
(ctx context.Context, t *ast.Task)

Source from the content-addressed store, hash-verified

9// StatusCheckable defines any type that can check if the status of a task is up-to-date.
10type StatusCheckable interface {
11 IsUpToDate(ctx context.Context, t *ast.Task) (bool, error)
12}
13
14// SourcesCheckable defines any type that can check if the sources of a task are up-to-date.

Callers 2

TestIsTaskUpToDateFunction · 0.65
IsTaskUpToDateFunction · 0.65

Implementers 8

NoneCheckerinternal/fingerprint/sources_none.go
StatusCheckerinternal/fingerprint/status.go
TimestampCheckerinternal/fingerprint/sources_timestamp
MockStatusCheckableinternal/fingerprint/checker_mock.go
MockStatusCheckable_Expecterinternal/fingerprint/checker_mock.go
MockSourcesCheckableinternal/fingerprint/checker_mock.go
MockSourcesCheckable_Expecterinternal/fingerprint/checker_mock.go
ChecksumCheckerinternal/fingerprint/sources_checksum.

Calls

no outgoing calls

Tested by 1

TestIsTaskUpToDateFunction · 0.52