Skip to content

Conversation

@MorrisJobke
Copy link
Member

Ref #8375

$this->assertGreaterThan($id1, $id2);
}

public function testinsertIfNotExist() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are there tests for the connection version of it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wondered if IDBConnection::insertIfNotExist() has tests

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find one ... let me then migrate those tests over to the IDBConnection.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migrated them to the new class.

@nickvergessen
Copy link
Member

Conflicting files
lib/public/DB.php

@MorrisJobke MorrisJobke force-pushed the remove-insert-if-not-exists branch from aa8cc6f to 2b849eb Compare March 12, 2018 15:36
@codecov
Copy link

codecov bot commented Mar 12, 2018

Codecov Report

Merging #8786 into master will decrease coverage by 20.47%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master   #8786       +/-   ##
============================================
- Coverage     51.87%   31.4%   -20.48%     
+ Complexity    25358   25357        -1     
============================================
  Files          1607    1607               
  Lines         95101   95100        -1     
  Branches       1377    1377               
============================================
- Hits          49336   29863    -19473     
- Misses        45765   65237    +19472
Impacted Files Coverage Δ Complexity Δ
lib/public/DB.php 0% <ø> (-40%) 4 <0> (-1)
lib/private/Tags.php 0% <0%> (-52.98%) 107 <0> (ø)
apps/files_trashbin/lib/Command/Expire.php 0% <0%> (-100%) 3% <0%> (ø)
lib/private/Repair/NC11/FixMountStorages.php 0% <0%> (-100%) 5% <0%> (ø)
...ib/private/Files/Config/UserMountCacheListener.php 0% <0%> (-100%) 2% <0%> (ø)
...public/AppFramework/OCS/OCSBadRequestException.php 0% <0%> (-100%) 1% <0%> (ø)
lib/private/Files/Mount/CacheMountProvider.php 0% <0%> (-100%) 4% <0%> (ø)
lib/private/Share20/Hooks.php 0% <0%> (-100%) 3% <0%> (ø)
apps/user_ldap/lib/LDAPUtility.php 0% <0%> (-100%) 1% <0%> (ø)
apps/user_ldap/lib/LDAPProviderFactory.php 0% <0%> (-100%) 2% <0%> (ø)
... and 373 more

@MorrisJobke
Copy link
Member Author

Conflicting files
lib/public/DB.php

Already fixed :P

@MorrisJobke MorrisJobke force-pushed the remove-insert-if-not-exists branch 2 times, most recently from e7de9c0 to a49d8a7 Compare March 12, 2018 16:03
@MorrisJobke MorrisJobke force-pushed the remove-insert-if-not-exists branch from a49d8a7 to 8d3104a Compare March 12, 2018 16:30
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 12, 2018
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke MorrisJobke force-pushed the remove-insert-if-not-exists branch from 8d3104a to 2b335fd Compare March 12, 2018 16:45
@MorrisJobke MorrisJobke merged commit fac0a11 into master Mar 12, 2018
@MorrisJobke MorrisJobke deleted the remove-insert-if-not-exists branch March 12, 2018 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants