• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

golang-migrate / migrate / 5186663860

pending completion
5186663860

Pull #932

github

longit644
Add Golang function as a source of migration
Pull Request #932: Add Golang function as a source of migration

252 of 370 new or added lines in 32 files covered. (68.11%)

4 existing lines in 4 files now uncovered.

4214 of 7231 relevant lines covered (58.28%)

61.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/source/executor.go
1
package source
2

3
// Executor is the interface that wraps the Execute method.
4
type Executor interface {
5
        Execute(dbInstance interface{}) error
6
}
7

8
// The ExecutorFunc type is an adapter to allow the use of
9
// ordinary functions as Executor.
10
type ExecutorFunc func(interface{}) error
11

12
// Execute calls f(w, r).
NEW
13
func (f ExecutorFunc) Execute(dbInstance interface{}) error {
×
NEW
14
        return f(dbInstance)
×
NEW
15
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc