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.
mysqlbinlog/get_first_previous_gtid_of_...

16 lines
294 B
Go

package binlog
import (
"testing"
)
func TestGetFirstPreviousGtidOfBinlogDir(t *testing.T) {
gtidDesc, err := GetFirstPreviousGtidOfBinlogDir("./test", "mysql-bin56")
if nil != err {
t.Fatalf("unexpected error %v", err)
}
if "" != gtidDesc {
t.Fatalf("wrong gtid %v", gtidDesc)
}
}