mirror of
https://github.com/talent-plan/tinykv.git
synced 2024-12-25 20:30:30 +08:00
rename lab to project
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
This commit is contained in:
parent
15838152aa
commit
e9462775d3
39
Makefile
39
Makefile
@ -50,22 +50,47 @@ ci: default test
|
||||
format:
|
||||
@gofmt -s -w `find . -name '*.go' -type f ! -path '*/_tools/*' -print`
|
||||
|
||||
lab1:
|
||||
project1:
|
||||
go test -count=1 ./kv/server -run 1
|
||||
|
||||
lab2: lab2a lab2b lab2c
|
||||
project2: project2a project2b project2c
|
||||
|
||||
lab2a:
|
||||
project2a:
|
||||
go test -count=1 ./raft -run 2A
|
||||
|
||||
lab2aa:
|
||||
project2aa:
|
||||
go test -count=1 ./raft -run 2AA
|
||||
|
||||
lab2ab:
|
||||
project2ab:
|
||||
go test -count=1 ./raft -run 2AB
|
||||
|
||||
lab2b:
|
||||
project2ac:
|
||||
go test -count=1 ./raft -run 2AC
|
||||
|
||||
project2b:
|
||||
go test -count=1 ./kv/test_raftstore -run 2B
|
||||
|
||||
lab2c:
|
||||
project2c:
|
||||
go test -count=1 ./raft ./kv/test_raftstore -run 2C
|
||||
|
||||
project3: project3a project3b project3c
|
||||
|
||||
project3a:
|
||||
go test -count=1 ./raft -run 3A
|
||||
|
||||
project3b:
|
||||
go test -count=1 ./raft -run 3B
|
||||
|
||||
project3c:
|
||||
go test -count=1 ./scheduler/... -run 3C
|
||||
|
||||
project4: project4a project4b project4c
|
||||
|
||||
project4a:
|
||||
go test -count=1 ./kv/transaction/... -run 4A
|
||||
|
||||
project4b:
|
||||
go test -count=1 ./kv/transaction/... -run 4B
|
||||
|
||||
project4c:
|
||||
go test -count=1 ./kv/transaction/... -run 4C
|
@ -278,7 +278,7 @@ func (c *RaftCluster) handleStoreHeartbeat(stats *schedulerpb.StoreStats) error
|
||||
|
||||
// processRegionHeartbeat updates the region information.
|
||||
func (c *RaftCluster) processRegionHeartbeat(region *core.RegionInfo) error {
|
||||
// Your Code Here(3C).
|
||||
// Your Code Here (3C).
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ func (s *balanceRegionScheduler) IsScheduleAllowed(cluster opt.Cluster) bool {
|
||||
}
|
||||
|
||||
func (s *balanceRegionScheduler) Schedule(cluster opt.Cluster) *operator.Operator {
|
||||
// Your Code Here(3C).
|
||||
// Your Code Here (3C).
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ func (s *testTsoSuite) testGetTimestamp(c *C, n int) *schedulerpb.Timestamp {
|
||||
return res
|
||||
}
|
||||
|
||||
func (s *testTsoSuite) TestTso3C(c *C) {
|
||||
func (s *testTsoSuite) TestTso(c *C) {
|
||||
var wg sync.WaitGroup
|
||||
for i := 0; i < 10; i++ {
|
||||
wg.Add(1)
|
||||
@ -98,7 +98,7 @@ func (s *testTsoSuite) TestTso3C(c *C) {
|
||||
wg.Wait()
|
||||
}
|
||||
|
||||
func (s *testTsoSuite) TestTsoWithoutCount3C(c *C) {
|
||||
func (s *testTsoSuite) TestTsoWithoutCount(c *C) {
|
||||
var err error
|
||||
cluster, err := tests.NewTestCluster(1)
|
||||
defer cluster.Destroy()
|
||||
|
Loading…
Reference in New Issue
Block a user