Skip to content

Instantly share code, notes, and snippets.

View SeanROlszewski's full-sized avatar

Sean Olszewski SeanROlszewski

  • Apple
  • United States
View GitHub Profile
Process: Logic Pro X [15938]
Path: /Applications/Logic Pro X.app/Contents/MacOS/Logic Pro X
Identifier: com.apple.logic10
Version: 10.5.0 (5283)
Build Info: MALogic-5283000000000000~2 (10T144)
App Item ID: 634148309
App External ID: 835637741
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Logic Pro X [15938]
let sourceFileCandidates = state.mutateOnlyList.isEmpty ?
discoverSourceFiles(inDirectoryAt: state.tempDirectoryURL.path, excludingPathsIn: state.muterConfiguration.excludeList) :
evaluateExclusive(files: state.mutateOnlyList, inDirectoryAt: tempDirectoryURL.path)
class CryptoCompareResponseTests: XCTestCase {
func test_deserialization() {
let path = Bundle(for: CryptoCompareResponseTests.self).path(forResource: "CryptoCompareResponse", ofType: "json")!
let examplePayload = try! Data(contentsOf: URL(fileURLWithPath: path))
guard let response = try? JSONDecoder().decode(CryptoCompareResponse.self, from: examplePayload) else {
XCTFail("Was unable to decode the data from the payload")
return
}
*******************************
Muter finished running!
--------------------------
Applied Mutation Operators
--------------------------
These are all of the ways that Muter introduced changes into your code.
Applied Mutation Operator File Mutation Test Result
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
// Some of the APIs that we use below are available in macOS 10.13 and above.
guard #available(macOS 10.13, *) else {
return
}
let fooBinary = productsDirectory.appendingPathComponent("muter")
let returnStatement = SyntaxFactory.makeBlankReturnStmt()
.withReturnKeyword(
SyntaxFactory.makeReturnKeyword()
.withLeadingTrivia([.carriageReturns(1), .tabs(1)])
.withTrailingTrivia(.spaces(1))
)
.withExpression(SyntaxFactory.makeStringLiteralExpr("example"))
let functionBody = SyntaxFactory.makeBlankCodeBlock()
curl -v https://hercule-dev.cfapps.io/
* Trying 52.72.32.141...
* TCP_NODELAY set
* Connected to hercule-dev.cfapps.io (52.72.32.141) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: *.cfapps.io
* Server certificate: Amazon
* Server certificate: Amazon Root CA 1
* Server certificate: Starfield Services Root Certificate Authority - G2
> GET / HTTP/1.1
<GET http://hercule-basic-auth.cfapps.io/,{host=[hercule-basic-auth.cfapps.io], user-agent=[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38], accept=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8], accept-encoding=[gzip, deflate], accept-language=[en-us], upgrade-insecure-requests=[1], x-b3-spanid=[ef3f2dcdb22d9931], x-b3-traceid=[ef3f2dcdb22d9931], x-cf-applicationid=[418e0a0c-24cb-4a3e-809e-b75e4f527f0b], x-cf-forwarded-url=[https://hercule-dev.cfapps.io/], x-cf-instanceid=[31da4403-3353-4a1c-7c38-9005], x-cf-instanceindex=[0], x-cf-proxy-metadata=[eyJub25jZSI6IlJaZE5vWnJ2T3l2SDhTVE0ifQ==], x-cf-proxy-signature=[MMMfAK4TuJoEW3GZUAkXwwNMfOcyU2qs_w2Vn_YOoVnUm-jnK9d6V-g_gvjtZbpMXBP2sSxiMHAexfp-rvuCdVCRdrwAcCBP8A92x57OxtvdWTgIdzQyzrYCrHUjwzgAwBnMKXPcZ11NnrNywBsTJUtotik=], x-vcap-request-id=[7c89e6bc-1742-4866-58fe-b0a7a0e6180c], x-forwarded-port=[80], x-forwarded-proto=[http], x-request-start=[1532724171258]}>
<GET http://he
@EnableWebSecurity
@Configuration
public class HttpSecurityConfig extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.mvcMatchers("/search/logs").hasRole("USER")
.and().httpBasic()
if (indexPath.row != 2) {
let session = sessionsBySection[indexPath.section][indexPath.row]
let timeslot = agenda.days[dayIndex].timeslots[indexPath.section]
let startTime = DateFormatter.localizedString(from: timeslot.startTime.date!,
dateStyle: .none,
timeStyle: .short)
let endTime = DateFormatter.localizedString(from: timeslot.endTime.date!,
dateStyle: .none,