mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	Backport #30240 by wxiaoguang Major changes: * Move some functions like "addReader" / "isSubDir" / "addRecursiveExclude" to a separate package, and add tests * Clarify the filename&dump type logic and add tests * Clarify the logger behavior and remove FIXME comments Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -21,8 +21,9 @@ var ( | ||||
| ) | ||||
|  | ||||
| // MockSet sets the time to a mocked time.Time | ||||
| func MockSet(now time.Time) { | ||||
| func MockSet(now time.Time) func() { | ||||
| 	mockNow = now | ||||
| 	return MockUnset | ||||
| } | ||||
|  | ||||
| // MockUnset will unset the mocked time.Time | ||||
|   | ||||
		Reference in New Issue
	
	Block a user