You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
292 B
Go
16 lines
292 B
Go
2 years ago
|
package binlog
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestGetGtidOfBinlog(t *testing.T) {
|
||
|
desc, err := GetGtidOfBinlog("./test/mysql-bin56.000003")
|
||
|
if nil != err {
|
||
|
t.Fatalf("unexpected error %v", err)
|
||
|
}
|
||
|
if "F60AB33CC60411E38E1CE66CCF50DB66:1-136" != desc {
|
||
|
t.Fatalf("wrong gtid %v", desc)
|
||
|
}
|
||
|
}
|