Skip to content

Instantly share code, notes, and snippets.

View leonard84's full-sized avatar
💭
I may be slow to respond.

Leonard Brünings leonard84

💭
I may be slow to respond.
  • Gradle Inc.
View GitHub Profile
public class org/spockframework/verifyall/VerifyTest extends spock/lang/Specification implements groovy/lang/GroovyObject {
private synthetic static org.codehaus.groovy.reflection.ClassInfo $staticClassInfo;
public synthetic static transient boolean __$stMC;
private synthetic transient groovy.lang.MetaClass metaClass;
private synthetic static org.codehaus.groovy.reflection.ClassInfo $staticClassInfo$;
private synthetic static java.lang.ref.SoftReference $callSiteArray;
public VerifyTest() { // <init> //()V
<localVar:index=0 , name=this , desc=Lorg/spockframework/verifyall/VerifyTest;, sig=null, start=L1, end=L2>
@org.spockframework.runtime.model.SpecMetadata(filename = 'script1497193799260.groovy', line = 1)
public class VerifyTest implements groovy.lang.GroovyObject extends spock.lang.Specification {
private static org.codehaus.groovy.reflection.ClassInfo $staticClassInfo
public static transient boolean __$stMC
private transient groovy.lang.MetaClass metaClass
public VerifyTest() {
metaClass = /*BytecodeExpression*/
}
Condition not satisfied:
1 == 2
|
false
Expected :2
Actual :1
@leonard84
leonard84 / spock-log.json
Last active May 18, 2017 16:57
Example Spock logformat
[{
"package": "org.spockframework.report.sample",
"name": "Fight or Flight (Spec Style)",
"start": 1494944477470,
"tags": [
{
"name": "SPOCK-260",
"key": "issue",
"value": "260",
"url": "http:\/\/issues.spockframework.org\/detail?id=260"
/*******************************************************************************
* Copyright 2017 The MITRE Corporation
* and the MIT Internet Trust Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@leonard84
leonard84 / spotter.ps1
Last active October 12, 2017 18:28
Saves all Pictures from the Windows Spotlight into My Documents/spotter
function Check-Header
{
param(
$path
)
# Hexidecimal signatures for expected files
$jpg = 'FFD8FFE0';
@leonard84
leonard84 / msysgit2unix-socket.py
Created January 17, 2017 10:33 — forked from kevinvalk/msysgit2unix-socket.py
Updated to better survive crashes and other unexpected behavior.
#!/usr/bin/python
"""
msysGit to Unix socket proxy
============================
This small script is intended to help use msysGit sockets with the new Windows Linux Subsystem (aka Bash for Windows).
It was specifically designed to pass SSH keys from the KeeAgent module of KeePass secret management application to the
ssh utility running in the WSL (it only works with Linux sockets). However, my guess is that it will have uses for other
@leonard84
leonard84 / gist:6090943
Created July 26, 2013 18:08
Move unmatched files
Index: amc.groovy
===================================================================
--- amc.groovy (revision 1674)
+++ amc.groovy (working copy)
@@ -24,6 +24,7 @@
def backdrops = tryQuietly{ backdrops.toBoolean() }
def clean = tryQuietly{ clean.toBoolean() }
def exec = tryQuietly{ exec.toString() }
+def unmatched = tryQuietly{ unmatched.toString() }