oficina / sheets Public
| 1 | package store |
| 2 | |
| 3 | import "gorm.io/gorm" |
| 4 | |
| 5 | func AdvanceContentVersionForTest(db *gorm.DB, tabID, version uint64) error { |
| 6 | h := &Handle{tabID: tabID} |
| 7 | return db.Transaction(func(tx *gorm.DB) error { return h.advanceContentVersion(tx, version) }) |
| 8 | } |
| 9 | |
| 10 | func SetNextVersionForTest(h *Handle, version uint64) { |
| 11 | h.mu.Lock() |
| 12 | defer h.mu.Unlock() |
| 13 | h.nextVersion = version |
| 14 | } |
| 15 |