server/tests/lib
Roeland Jago Douma d5bf2c4523
Move normalizePath to regexes instead of looping
This is IMO a bit more readable and it seems to make the code faster.
Tested it on the company instance where there are over 3k calls to this
function. It shaves off around 10ms.

The advantage here is that the pattern gets optimized by php itsel and
cached.
Also looking for all patterns at the same time and especially no longer
looping for /./ patterns should save time.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-10-10 13:23:59 +02:00
..
Accounts Use ::class in test mocks 2017-10-24 17:45:32 +02:00
Activity Remove deprecated publishActivity function 2018-10-05 12:55:45 +02:00
App add deck and mail to the groupware bundle, remove talk 2018-08-17 13:27:48 +02:00
AppFramework Do not use file as template parameter 2018-08-09 16:45:25 +02:00
Archive Remove \OCP\Files::tmpFolder 2018-03-19 10:54:39 +01:00
Authentication Add tests 2018-10-02 19:50:54 +02:00
BackgroundJob Use ::class in test mocks 2017-10-24 17:45:32 +02:00
Cache Make cache tests a bit more clear 2017-05-04 19:37:40 -03:00
Calendar RoomManager/ResourceManager: Inject IServerContainer instead of using OC Server 2018-10-08 01:50:17 +02:00
Collaboration/Collaborators Ignore deactivated users in collaborators user search plugin 2018-08-06 09:55:24 +02:00
Command Add proper EOL 2017-09-04 14:21:44 +02:00
Comments Allow to filter the unread count by verb 2018-07-30 09:41:51 +02:00
Contacts/ContactsMenu Fix risky tests without assertions 2018-01-25 11:33:25 +01:00
DB Fix tests 2018-08-08 12:58:50 +02:00
Diagnostics Adjust query/event logging code in favour of more complex owncloud/diagnostics (#27643) 2017-04-26 13:19:43 +02:00
Encryption Class "ProgressBar" is declared "final" and cannot be mocked. 2018-01-25 11:33:26 +01:00
Federation Fix risky tests without assertions 2018-01-25 11:33:25 +01:00
Files Move normalizePath to regexes instead of looping 2018-10-10 13:23:59 +02:00
GlobalScale add new config switched for the global scale architecture 2017-05-29 18:19:28 +02:00
Group Tests fix 2018-06-15 23:00:59 +02:00
Hooks Fix risky tests without assertions 2018-01-25 11:33:25 +01:00
Http/Client Fix HTTP client given options being overriden by default options 2018-06-14 21:36:04 +02:00
IntegrityCheck Handle strict typing in Checker and fix tests 2018-02-21 21:09:08 +01:00
L10N Add simple unit test for findLanguageFromLocale 2018-09-23 20:12:00 +02:00
Lock prevent lock values from going negative with memcache backend 2018-07-05 14:39:10 +02:00
Lockdown Save the scope of an auth token in the session 2017-04-05 17:58:33 +02:00
Log Fix tests 2018-10-02 18:37:57 +02:00
Mail Swift to \Swift_Mailer as abstraction 2018-07-04 08:28:33 +02:00
Memcache Drop support for xcache 2018-08-12 17:14:08 +02:00
Migration Use ::class in test mocks 2017-10-24 17:45:32 +02:00
Notification Fix "Undefined method setExpectedException()" 2018-01-24 18:10:16 +01:00
OCS PrivateData to app 2017-07-21 08:51:14 +02:00
Preview Merge pull request #10526 from steiny2k/HEICHEIF 2018-08-22 13:41:19 +02:00
PublicNamespace Migrate tests for contacts manager to correct test class 2018-03-21 10:43:18 +01:00
Remote Add some more tests for ocs remote api 2017-12-08 16:37:14 +01:00
Repair Move depsCache clearing to SCSSCacher/JSCombiner 2018-02-03 15:21:51 +01:00
RichObjectStrings Fix risky tests without assertions 2018-01-25 11:33:25 +01:00
Security Fix tests 2018-05-14 13:30:22 +02:00
Session Use ::class in test mocks of encryption app 2017-10-26 13:56:56 +02:00
Settings Fix reference to template in tests 2018-10-08 11:27:22 +02:00
Share Get rid of shareItem 2018-05-23 19:51:37 +02:00
Share20 Add support for tokens in room shares 2018-08-08 14:25:44 +02:00
Support/CrashReport Add breadcrumb support to crash reporters 2018-09-05 20:58:39 +02:00
SystemTag Use ::class in test mocks 2017-10-24 17:45:32 +02:00
Template Append cache bump parameter to scss files URL 2018-08-01 12:42:49 +02:00
Traits Cleanup OC_User and OCP\User 2018-01-16 18:39:11 +01:00
Updater Backend work to provide NC whats New info to users 2018-07-05 14:33:08 +02:00
User Add tests 2018-10-02 19:50:54 +02:00
Util extend tests for status quo 2018-01-03 13:24:56 +01:00
AllConfigTest.php Don't use deprecated getMock() anymore 2017-04-20 12:30:21 +02:00
APITest.php Remove unused methods and constants from legacy OC_API 2018-03-12 18:03:25 +01:00
AppConfigTest.php
AppTest.php always enable cloud federation api 2018-07-02 12:43:43 +02:00
AutoLoaderTest.php
AvatarManagerTest.php Use \OC\User\Manager internally in the avatarmanager 2018-01-14 21:32:54 +01:00
AvatarTest.php Removed old route, fix tests and fix var type 2018-06-13 18:46:05 +02:00
CapabilitiesManagerTest.php Properly log the full exception instead of only the message 2018-01-23 10:57:21 +01:00
ConfigTest.php Check for boolean false and add tests 2017-04-04 15:56:50 -05:00
ContactsManagerTest.php Migrate tests for contacts manager to correct test class 2018-03-21 10:43:18 +01:00
DateTimeFormatterTest.php Provide tests for future timestamp formatting 2017-10-23 14:20:21 +02:00
ErrorHandlerTest.php
FileChunkingTest.php Use ::class in test mocks of dav app 2017-10-26 10:16:12 +02:00
FilesTest.php
HelperStorageTest.php fix quota tests for external storage 2017-05-12 11:32:16 -05:00
HookHelper.php
ImageTest.php Improve OC_Image code to not guess the type of input, but actually request the specific methods to be called 2018-01-18 13:40:55 +01:00
InfoXmlTest.php Fix risky tests without assertions 2018-01-25 11:33:25 +01:00
InstallerTest.php Use isInstalled of AppManger instead of reimplement it 2018-03-21 11:34:18 +01:00
LargeFileHelperGetFileSizeTest.php
LargeFileHelperTest.php
LegacyHelperTest.php Deprecate unused, private OC_Helper::linkToPublic 2018-10-08 18:29:52 +02:00
LoggerTest.php revert Log's dependency to SystemConfig to work during Installation 2018-04-26 12:10:53 +02:00
MemoryInfoTest.php Adds license to files. Updates the branch. 2018-08-20 20:46:23 +02:00
NaturalSortTest.php
NavigationManagerTest.php Fixed phpunit 2018-07-13 14:47:00 +02:00
RepairStepTest.php Don't use deprecated getMock() anymore 2017-04-20 12:30:21 +02:00
ServerTest.php Remove deprecated HTTPHelper 2018-03-13 21:54:56 +01:00
SetupTest.php Add more test cases 2018-09-30 12:24:38 +02:00
SubAdminTest.php
TagsTest.php Get rid of shareItem 2018-05-23 19:51:37 +02:00
TemplateFunctionsTest.php
TempManagerTest.php Loglevel is an int 2018-02-27 10:45:35 +01:00
TestCase.php whitelist audit.log 2018-06-29 11:03:13 +02:00
TestMoveableMountPoint.php
UpdaterTest.php Wait for cron to finish before running upgrade command 2018-06-19 14:22:45 +02:00
UrlGeneratorTest.php Add function to generate urls for OCS routes 2018-10-09 15:41:50 +02:00
UtilCheckServerTest.php Use SystemConfig instead of AllConfig for DB stuff 2017-03-19 15:53:49 -06:00
UtilTest.php Remove \OCP\Files::tmpFolder 2018-03-19 10:54:39 +01:00