Running go test checkpoint_test.go on the package pkg/ingestor showing error

running go test checkpoint_test.go on the package pkg/ingestor showing error.

command-line-arguments [command-line-arguments.test]

./checkpoint_test.go:27:84: undefined: Interface
./checkpoint_test.go:28:12: undefined: mockQuerierServer
./checkpoint_test.go:46:68: undefined: Config
./checkpoint_test.go:47:20: undefined: defaultIngesterTestConfig
./checkpoint_test.go:61:41: undefined: defaultLimitsTestConfig
./checkpoint_test.go:64:22: undefined: mockStore
./checkpoint_test.go:382:38: undefined: instance
./checkpoint_test.go:384:50: undefined: instance
./checkpoint_test.go:388:20: undefined: Series
./checkpoint_test.go:551:44: undefined: Chunk
./checkpoint_test.go:64:22: too many errors
FAIL command-line-arguments [build failed]
FAIL