Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #27365, comment 9


Ignore:
Timestamp:
03/24/2014 08:10:26 PM (11 years ago)
Author:
chrisbliss18
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27365, comment 9

    initial v1  
    11The combinations to test in order to trigger every possible combination of return values is quite high. This is because the entire test stack would have to involve every possible failure condition of `request_filesystem_credentials()`, `download_url()`, `unzip_file()`, and other complex functions.
    22
    3 I don't think that this is necessary to do this full stack test as looking through the code itself shows the problem is just how the returns are handled. I went through and simplified the entire call stack for a `bulk_upgrade()` function and represented it as pseudocode that focuses on just the return values. You can see that at the end of this comment.
     3I don't think that it is necessary to do a full stack test as looking through the code itself shows the problem is just how the returns are handled. I went through and simplified the entire call stack for a `bulk_upgrade()` function and represented it as pseudocode that focuses on just the return values. You can see that at the end of this comment.
    44
    55Each USED comment represents a potential return value that is represented in the data returned from the `bulk_upgrade()` call. Each IGNORED comment represents a potential return value that is missing in the data returned from the `bulk_upgrade()` call.