mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-07-05 20:28:37 +08:00
upgrade to use testfixtures v3 (#11904)
* upgrade to use testfixtures v3 * simplify logic * make vendor * update per @lunny * Update templates/repo/empty.tmpl * Update templates/repo/empty.tmpl Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
contrib/pr
go.modgo.sumintegrations
models
vendor
github.com
go-testfixtures/testfixtures/v3
.editorconfig.gitattributes.gitignore.goreleaser.yml.sample.envCHANGELOG.mdDockerfileLICENSEREADME.mdTaskfile.ymldocker-compose.ymldump.gogo.modgo.sumhelper.gojson.gomysql.gopostgresql.gosqlite.gosqlserver.gotestfixtures.gotime.go
mattn/go-sqlite3
.travis.ymlREADME.mdbackup.gocallback.goconvert.goerror.gosqlite3-binding.csqlite3-binding.hsqlite3.gosqlite3_context.gosqlite3_go18.gosqlite3_libsqlite3.gosqlite3_load_extension.gosqlite3_load_extension_omit.gosqlite3_opt_allow_uri_authority.gosqlite3_opt_app_armor.gosqlite3_opt_foreign_keys.gosqlite3_opt_fts5.gosqlite3_opt_icu.gosqlite3_opt_introspect.gosqlite3_opt_json1.gosqlite3_opt_preupdate.gosqlite3_opt_preupdate_hook.gosqlite3_opt_preupdate_omit.gosqlite3_opt_secure_delete.gosqlite3_opt_secure_delete_fast.gosqlite3_opt_stat4.gosqlite3_opt_unlock_notify.gosqlite3_opt_vacuum_full.gosqlite3_opt_vacuum_incr.gosqlite3_opt_vtable.gosqlite3_other.gosqlite3_solaris.gosqlite3_trace.gosqlite3_type.gosqlite3_windows.gosqlite3ext.hstatic_mock.go
spf13/pflag
gopkg.in
testfixtures.v2
.travis.ymlREADME.mdTaskfile.ymlappveyor.ymldeprecated.goerrors.gogenerate.gooptions.gooracle.gotestfixtures.gotime.go
yaml.v2
21
vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_omit.go
generated
vendored
Normal file
21
vendor/github.com/mattn/go-sqlite3/sqlite3_opt_preupdate_omit.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
// Copyright (C) 2019 G.J.R. Timmer <gjr.timmer@gmail.com>.
|
||||
// Copyright (C) 2018 segment.com <friends@segment.com>
|
||||
//
|
||||
// Use of this source code is governed by an MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build !sqlite_preupdate_hook,cgo
|
||||
|
||||
package sqlite3
|
||||
|
||||
// RegisterPreUpdateHook sets the pre-update hook for a connection.
|
||||
//
|
||||
// The callback is passed a SQLitePreUpdateData struct with the data for
|
||||
// the update, as well as methods for fetching copies of impacted data.
|
||||
//
|
||||
// If there is an existing update hook for this connection, it will be
|
||||
// removed. If callback is nil the existing hook (if any) will be removed
|
||||
// without creating a new one.
|
||||
func (c *SQLiteConn) RegisterPreUpdateHook(callback func(SQLitePreUpdateData)) {
|
||||
// NOOP
|
||||
}
|
Reference in New Issue
Block a user