├── Gopkg.lock ├── Gopkg.toml ├── LICENSE ├── README.md ├── contract.go ├── contract_test.go ├── eth_client.go ├── event.go ├── event_listener.go ├── event_listener_test.go ├── mocks └── EthClient.go └── vendor ├── github.com ├── btcsuite │ └── btcd │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── CHANGES │ │ ├── LICENSE │ │ ├── README.md │ │ ├── addrmgr │ │ ├── addrmanager.go │ │ ├── addrmanager_test.go │ │ ├── cov_report.sh │ │ ├── doc.go │ │ ├── internal_test.go │ │ ├── knownaddress.go │ │ ├── knownaddress_test.go │ │ ├── log.go │ │ ├── network.go │ │ ├── network_test.go │ │ └── test_coverage.txt │ │ ├── blockchain │ │ ├── README.md │ │ ├── accept.go │ │ ├── bench_test.go │ │ ├── blockindex.go │ │ ├── chain.go │ │ ├── chain_test.go │ │ ├── chainio.go │ │ ├── chainio_test.go │ │ ├── chainview.go │ │ ├── chainview_test.go │ │ ├── checkpoints.go │ │ ├── common_test.go │ │ ├── compress.go │ │ ├── compress_test.go │ │ ├── difficulty.go │ │ ├── difficulty_test.go │ │ ├── doc.go │ │ ├── error.go │ │ ├── error_test.go │ │ ├── example_test.go │ │ ├── fullblocks_test.go │ │ ├── fullblocktests │ │ │ ├── README.md │ │ │ ├── doc.go │ │ │ ├── generate.go │ │ │ └── params.go │ │ ├── indexers │ │ │ ├── README.md │ │ │ ├── addrindex.go │ │ │ ├── addrindex_test.go │ │ │ ├── blocklogger.go │ │ │ ├── common.go │ │ │ ├── log.go │ │ │ ├── manager.go │ │ │ └── txindex.go │ │ ├── log.go │ │ ├── mediantime.go │ │ ├── mediantime_test.go │ │ ├── merkle.go │ │ ├── merkle_test.go │ │ ├── notifications.go │ │ ├── notifications_test.go │ │ ├── process.go │ │ ├── scriptval.go │ │ ├── scriptval_test.go │ │ ├── testdata │ │ │ ├── 277647.dat.bz2 │ │ │ ├── 277647.utxostore.bz2 │ │ │ ├── blk_0_to_4.dat.bz2 │ │ │ ├── blk_3A.dat.bz2 │ │ │ ├── blk_4A.dat.bz2 │ │ │ ├── blk_5A.dat.bz2 │ │ │ └── reorgtest.hex │ │ ├── thresholdstate.go │ │ ├── thresholdstate_test.go │ │ ├── timesorter.go │ │ ├── timesorter_test.go │ │ ├── utxoviewpoint.go │ │ ├── validate.go │ │ ├── validate_test.go │ │ ├── versionbits.go │ │ └── weight.go │ │ ├── btcd.go │ │ ├── btcec │ │ ├── README.md │ │ ├── bench_test.go │ │ ├── btcec.go │ │ ├── btcec_test.go │ │ ├── ciphering.go │ │ ├── ciphering_test.go │ │ ├── doc.go │ │ ├── example_test.go │ │ ├── field.go │ │ ├── field_test.go │ │ ├── genprecomps.go │ │ ├── gensecp256k1.go │ │ ├── precompute.go │ │ ├── privkey.go │ │ ├── privkey_test.go │ │ ├── pubkey.go │ │ ├── pubkey_test.go │ │ ├── secp256k1.go │ │ ├── signature.go │ │ └── signature_test.go │ │ ├── btcjson │ │ ├── CONTRIBUTORS │ │ ├── README.md │ │ ├── btcdextcmds.go │ │ ├── btcdextcmds_test.go │ │ ├── btcdextresults.go │ │ ├── btcdextresults_test.go │ │ ├── btcwalletextcmds.go │ │ ├── btcwalletextcmds_test.go │ │ ├── chainsvrcmds.go │ │ ├── chainsvrcmds_test.go │ │ ├── chainsvrresults.go │ │ ├── chainsvrresults_test.go │ │ ├── chainsvrwscmds.go │ │ ├── chainsvrwscmds_test.go │ │ ├── chainsvrwsntfns.go │ │ ├── chainsvrwsntfns_test.go │ │ ├── chainsvrwsresults.go │ │ ├── chainsvrwsresults_test.go │ │ ├── cmdinfo.go │ │ ├── cmdinfo_test.go │ │ ├── cmdparse.go │ │ ├── cmdparse_test.go │ │ ├── doc.go │ │ ├── error.go │ │ ├── error_test.go │ │ ├── example_test.go │ │ ├── export_test.go │ │ ├── help.go │ │ ├── help_test.go │ │ ├── helpers.go │ │ ├── helpers_test.go │ │ ├── jsonrpc.go │ │ ├── jsonrpc_test.go │ │ ├── jsonrpcerr.go │ │ ├── register.go │ │ ├── register_test.go │ │ ├── walletsvrcmds.go │ │ ├── walletsvrcmds_test.go │ │ ├── walletsvrresults.go │ │ ├── walletsvrwscmds.go │ │ ├── walletsvrwscmds_test.go │ │ ├── walletsvrwsntfns.go │ │ └── walletsvrwsntfns_test.go │ │ ├── chaincfg │ │ ├── README.md │ │ ├── chainhash │ │ │ ├── README.md │ │ │ ├── doc.go │ │ │ ├── hash.go │ │ │ ├── hash_test.go │ │ │ ├── hashfuncs.go │ │ │ └── hashfuncs_test.go │ │ ├── doc.go │ │ ├── genesis.go │ │ ├── genesis_test.go │ │ ├── params.go │ │ ├── params_test.go │ │ └── register_test.go │ │ ├── cmd │ │ ├── addblock │ │ │ ├── addblock.go │ │ │ ├── config.go │ │ │ └── import.go │ │ ├── btcctl │ │ │ ├── btcctl.go │ │ │ ├── config.go │ │ │ ├── httpclient.go │ │ │ └── version.go │ │ ├── findcheckpoint │ │ │ ├── config.go │ │ │ └── findcheckpoint.go │ │ └── gencerts │ │ │ └── gencerts.go │ │ ├── config.go │ │ ├── config_test.go │ │ ├── connmgr │ │ ├── README.md │ │ ├── connmanager.go │ │ ├── connmanager_test.go │ │ ├── doc.go │ │ ├── dynamicbanscore.go │ │ ├── dynamicbanscore_test.go │ │ ├── log.go │ │ ├── seed.go │ │ └── tor.go │ │ ├── database │ │ ├── README.md │ │ ├── cmd │ │ │ └── dbtool │ │ │ │ ├── fetchblock.go │ │ │ │ ├── fetchblockregion.go │ │ │ │ ├── globalconfig.go │ │ │ │ ├── insecureimport.go │ │ │ │ ├── loadheaders.go │ │ │ │ ├── main.go │ │ │ │ └── signal.go │ │ ├── doc.go │ │ ├── driver.go │ │ ├── driver_test.go │ │ ├── error.go │ │ ├── error_test.go │ │ ├── example_test.go │ │ ├── export_test.go │ │ ├── ffldb │ │ │ ├── README.md │ │ │ ├── bench_test.go │ │ │ ├── blockio.go │ │ │ ├── db.go │ │ │ ├── dbcache.go │ │ │ ├── doc.go │ │ │ ├── driver.go │ │ │ ├── driver_test.go │ │ │ ├── export_test.go │ │ │ ├── interface_test.go │ │ │ ├── ldbtreapiter.go │ │ │ ├── mockfile_test.go │ │ │ ├── reconcile.go │ │ │ └── whitebox_test.go │ │ ├── interface.go │ │ ├── internal │ │ │ └── treap │ │ │ │ ├── README.md │ │ │ │ ├── common.go │ │ │ │ ├── common_test.go │ │ │ │ ├── doc.go │ │ │ │ ├── immutable.go │ │ │ │ ├── immutable_test.go │ │ │ │ ├── mutable.go │ │ │ │ ├── mutable_test.go │ │ │ │ ├── treapiter.go │ │ │ │ └── treapiter_test.go │ │ ├── log.go │ │ └── testdata │ │ │ └── blocks1-256.bz2 │ │ ├── doc.go │ │ ├── docs │ │ ├── README.md │ │ ├── code_contribution_guidelines.md │ │ ├── configure_peer_server_listen_interfaces.md │ │ ├── configure_rpc_server_listen_interfaces.md │ │ ├── configuring_tor.md │ │ ├── default_ports.md │ │ ├── json_rpc_api.md │ │ └── using_bootstrap_dat.md │ │ ├── glide.lock │ │ ├── glide.yaml │ │ ├── goclean.sh │ │ ├── integration │ │ ├── README.md │ │ ├── bip0009_test.go │ │ ├── csv_fork_test.go │ │ ├── main.go │ │ ├── rpcserver_test.go │ │ └── rpctest │ │ │ ├── README.md │ │ │ ├── blockgen.go │ │ │ ├── doc.go │ │ │ ├── memwallet.go │ │ │ ├── node.go │ │ │ ├── rpc_harness.go │ │ │ ├── rpc_harness_test.go │ │ │ └── utils.go │ │ ├── limits │ │ ├── limits_plan9.go │ │ ├── limits_unix.go │ │ └── limits_windows.go │ │ ├── log.go │ │ ├── mempool │ │ ├── README.md │ │ ├── doc.go │ │ ├── error.go │ │ ├── log.go │ │ ├── mempool.go │ │ ├── mempool_test.go │ │ ├── policy.go │ │ └── policy_test.go │ │ ├── mining │ │ ├── README.md │ │ ├── cpuminer │ │ │ ├── README.md │ │ │ ├── cpuminer.go │ │ │ └── log.go │ │ ├── log.go │ │ ├── mining.go │ │ ├── mining_test.go │ │ ├── policy.go │ │ └── policy_test.go │ │ ├── netsync │ │ ├── README.md │ │ ├── blocklogger.go │ │ ├── doc.go │ │ ├── interface.go │ │ ├── log.go │ │ └── manager.go │ │ ├── params.go │ │ ├── peer │ │ ├── README.md │ │ ├── doc.go │ │ ├── example_test.go │ │ ├── export_test.go │ │ ├── log.go │ │ ├── mruinvmap.go │ │ ├── mruinvmap_test.go │ │ ├── mrunoncemap.go │ │ ├── mrunoncemap_test.go │ │ ├── peer.go │ │ └── peer_test.go │ │ ├── release │ │ ├── GIT-GPG-KEY-conformal.txt │ │ ├── notes.sample │ │ └── prep_release.sh │ │ ├── rpcadapters.go │ │ ├── rpcclient │ │ ├── CONTRIBUTORS │ │ ├── README.md │ │ ├── chain.go │ │ ├── doc.go │ │ ├── examples │ │ │ ├── bitcoincorehttp │ │ │ │ ├── README.md │ │ │ │ └── main.go │ │ │ ├── btcdwebsockets │ │ │ │ ├── README.md │ │ │ │ └── main.go │ │ │ └── btcwalletwebsockets │ │ │ │ ├── README.md │ │ │ │ └── main.go │ │ ├── extensions.go │ │ ├── infrastructure.go │ │ ├── log.go │ │ ├── mining.go │ │ ├── net.go │ │ ├── notify.go │ │ ├── rawrequest.go │ │ ├── rawtransactions.go │ │ └── wallet.go │ │ ├── rpcserver.go │ │ ├── rpcserverhelp.go │ │ ├── rpcserverhelp_test.go │ │ ├── rpcwebsocket.go │ │ ├── sample-btcd.conf │ │ ├── server.go │ │ ├── service_windows.go │ │ ├── signal.go │ │ ├── signalsigterm.go │ │ ├── txscript │ │ ├── README.md │ │ ├── consensus.go │ │ ├── data │ │ │ ├── LICENSE │ │ │ ├── script_tests.json │ │ │ ├── sighash.json │ │ │ ├── tx_invalid.json │ │ │ └── tx_valid.json │ │ ├── doc.go │ │ ├── engine.go │ │ ├── engine_test.go │ │ ├── error.go │ │ ├── error_test.go │ │ ├── example_test.go │ │ ├── hashcache.go │ │ ├── hashcache_test.go │ │ ├── log.go │ │ ├── opcode.go │ │ ├── opcode_test.go │ │ ├── reference_test.go │ │ ├── script.go │ │ ├── script_test.go │ │ ├── scriptbuilder.go │ │ ├── scriptbuilder_test.go │ │ ├── scriptnum.go │ │ ├── scriptnum_test.go │ │ ├── sigcache.go │ │ ├── sigcache_test.go │ │ ├── sign.go │ │ ├── sign_test.go │ │ ├── stack.go │ │ ├── stack_test.go │ │ ├── standard.go │ │ └── standard_test.go │ │ ├── upgrade.go │ │ ├── upnp.go │ │ ├── version.go │ │ └── wire │ │ ├── README.md │ │ ├── bench_test.go │ │ ├── blockheader.go │ │ ├── blockheader_test.go │ │ ├── common.go │ │ ├── common_test.go │ │ ├── doc.go │ │ ├── error.go │ │ ├── fakemessage_test.go │ │ ├── fixedIO_test.go │ │ ├── invvect.go │ │ ├── invvect_test.go │ │ ├── message.go │ │ ├── message_test.go │ │ ├── msgaddr.go │ │ ├── msgaddr_test.go │ │ ├── msgalert.go │ │ ├── msgalert_test.go │ │ ├── msgblock.go │ │ ├── msgblock_test.go │ │ ├── msgfeefilter.go │ │ ├── msgfeefilter_test.go │ │ ├── msgfilteradd.go │ │ ├── msgfilteradd_test.go │ │ ├── msgfilterclear.go │ │ ├── msgfilterclear_test.go │ │ ├── msgfilterload.go │ │ ├── msgfilterload_test.go │ │ ├── msggetaddr.go │ │ ├── msggetaddr_test.go │ │ ├── msggetblocks.go │ │ ├── msggetblocks_test.go │ │ ├── msggetdata.go │ │ ├── msggetdata_test.go │ │ ├── msggetheaders.go │ │ ├── msggetheaders_test.go │ │ ├── msgheaders.go │ │ ├── msgheaders_test.go │ │ ├── msginv.go │ │ ├── msginv_test.go │ │ ├── msgmempool.go │ │ ├── msgmempool_test.go │ │ ├── msgmerkleblock.go │ │ ├── msgmerkleblock_test.go │ │ ├── msgnotfound.go │ │ ├── msgnotfound_test.go │ │ ├── msgping.go │ │ ├── msgping_test.go │ │ ├── msgpong.go │ │ ├── msgpong_test.go │ │ ├── msgreject.go │ │ ├── msgreject_test.go │ │ ├── msgsendheaders.go │ │ ├── msgsendheaders_test.go │ │ ├── msgtx.go │ │ ├── msgtx_test.go │ │ ├── msgverack.go │ │ ├── msgverack_test.go │ │ ├── msgversion.go │ │ ├── msgversion_test.go │ │ ├── netaddress.go │ │ ├── netaddress_test.go │ │ ├── protocol.go │ │ ├── protocol_test.go │ │ └── testdata │ │ └── megatx.bin.bz2 ├── davecgh │ └── go-spew │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── cov_report.sh │ │ ├── spew │ │ ├── bypass.go │ │ ├── bypasssafe.go │ │ ├── common.go │ │ ├── common_test.go │ │ ├── config.go │ │ ├── doc.go │ │ ├── dump.go │ │ ├── dump_test.go │ │ ├── dumpcgo_test.go │ │ ├── dumpnocgo_test.go │ │ ├── example_test.go │ │ ├── format.go │ │ ├── format_test.go │ │ ├── internal_test.go │ │ ├── internalunsafe_test.go │ │ ├── spew.go │ │ ├── spew_test.go │ │ └── testdata │ │ │ └── dumpcgo.go │ │ └── test_coverage.txt ├── ethereum │ └── go-ethereum │ │ ├── .dockerignore │ │ ├── .gitattributes │ │ ├── .github │ │ ├── CONTRIBUTING.md │ │ └── ISSUE_TEMPLATE.md │ │ ├── .gitignore │ │ ├── .gitmodules │ │ ├── .mailmap │ │ ├── .travis.yml │ │ ├── AUTHORS │ │ ├── COPYING │ │ ├── COPYING.LESSER │ │ ├── Dockerfile │ │ ├── Makefile │ │ ├── README.md │ │ ├── VERSION │ │ ├── accounts │ │ ├── abi │ │ │ ├── abi.go │ │ │ ├── abi_test.go │ │ │ ├── argument.go │ │ │ ├── bind │ │ │ │ ├── auth.go │ │ │ │ ├── backend.go │ │ │ │ ├── backends │ │ │ │ │ └── simulated.go │ │ │ │ ├── base.go │ │ │ │ ├── bind.go │ │ │ │ ├── bind_test.go │ │ │ │ ├── template.go │ │ │ │ ├── util.go │ │ │ │ └── util_test.go │ │ │ ├── doc.go │ │ │ ├── error.go │ │ │ ├── event.go │ │ │ ├── event_test.go │ │ │ ├── method.go │ │ │ ├── numbers.go │ │ │ ├── numbers_test.go │ │ │ ├── pack.go │ │ │ ├── pack_test.go │ │ │ ├── reflect.go │ │ │ ├── type.go │ │ │ ├── type_test.go │ │ │ ├── unpack.go │ │ │ └── unpack_test.go │ │ ├── accounts.go │ │ ├── errors.go │ │ ├── hd.go │ │ ├── hd_test.go │ │ ├── keystore │ │ │ ├── account_cache.go │ │ │ ├── account_cache_test.go │ │ │ ├── key.go │ │ │ ├── keystore.go │ │ │ ├── keystore_passphrase.go │ │ │ ├── keystore_passphrase_test.go │ │ │ ├── keystore_plain.go │ │ │ ├── keystore_plain_test.go │ │ │ ├── keystore_test.go │ │ │ ├── keystore_wallet.go │ │ │ ├── presale.go │ │ │ ├── testdata │ │ │ │ ├── dupes │ │ │ │ │ ├── 1 │ │ │ │ │ ├── 2 │ │ │ │ │ └── foo │ │ │ │ ├── keystore │ │ │ │ │ ├── .hiddenfile │ │ │ │ │ ├── README │ │ │ │ │ ├── UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8 │ │ │ │ │ ├── aaa │ │ │ │ │ ├── empty │ │ │ │ │ ├── foo │ │ │ │ │ │ └── fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e │ │ │ │ │ ├── garbage │ │ │ │ │ ├── no-address │ │ │ │ │ ├── zero │ │ │ │ │ └── zzz │ │ │ │ ├── v1 │ │ │ │ │ └── cb61d5a9c4896fb9658090b597ef0e7be6f7b67e │ │ │ │ │ │ └── cb61d5a9c4896fb9658090b597ef0e7be6f7b67e │ │ │ │ ├── v1_test_vector.json │ │ │ │ ├── v3_test_vector.json │ │ │ │ └── very-light-scrypt.json │ │ │ ├── watch.go │ │ │ └── watch_fallback.go │ │ ├── manager.go │ │ ├── url.go │ │ └── usbwallet │ │ │ ├── hub.go │ │ │ ├── internal │ │ │ └── trezor │ │ │ │ ├── messages.pb.go │ │ │ │ ├── messages.proto │ │ │ │ ├── trezor.go │ │ │ │ ├── types.pb.go │ │ │ │ └── types.proto │ │ │ ├── ledger.go │ │ │ ├── trezor.go │ │ │ └── wallet.go │ │ ├── appveyor.yml │ │ ├── bmt │ │ ├── bmt.go │ │ ├── bmt_r.go │ │ └── bmt_test.go │ │ ├── build │ │ ├── ci-notes.md │ │ ├── ci.go │ │ ├── deb.changelog │ │ ├── deb.control │ │ ├── deb.copyright │ │ ├── deb.docs │ │ ├── deb.install │ │ ├── deb.rules │ │ ├── env.sh │ │ ├── mvn.pom │ │ ├── mvn.settings │ │ ├── nsis.envvarupdate.nsh │ │ ├── nsis.geth.nsi │ │ ├── nsis.install.nsh │ │ ├── nsis.pathupdate.nsh │ │ ├── nsis.simplefc.dll │ │ ├── nsis.simplefc.source.zip │ │ ├── nsis.uninstall.nsh │ │ ├── pod.podspec │ │ └── update-license.go │ │ ├── circle.yml │ │ ├── cmd │ │ ├── abigen │ │ │ └── main.go │ │ ├── bootnode │ │ │ └── main.go │ │ ├── evm │ │ │ ├── compiler.go │ │ │ ├── disasm.go │ │ │ ├── internal │ │ │ │ └── compiler │ │ │ │ │ └── compiler.go │ │ │ ├── json_logger.go │ │ │ ├── main.go │ │ │ ├── runner.go │ │ │ └── staterunner.go │ │ ├── faucet │ │ │ ├── faucet.go │ │ │ ├── faucet.html │ │ │ └── website.go │ │ ├── geth │ │ │ ├── accountcmd.go │ │ │ ├── accountcmd_test.go │ │ │ ├── bugcmd.go │ │ │ ├── chaincmd.go │ │ │ ├── config.go │ │ │ ├── consolecmd.go │ │ │ ├── consolecmd_test.go │ │ │ ├── dao_test.go │ │ │ ├── genesis_test.go │ │ │ ├── main.go │ │ │ ├── misccmd.go │ │ │ ├── monitorcmd.go │ │ │ ├── run_test.go │ │ │ ├── testdata │ │ │ │ ├── empty.js │ │ │ │ ├── guswallet.json │ │ │ │ ├── passwords.txt │ │ │ │ └── wrong-passwords.txt │ │ │ └── usage.go │ │ ├── internal │ │ │ └── browser │ │ │ │ └── browser.go │ │ ├── p2psim │ │ │ └── main.go │ │ ├── puppeth │ │ │ ├── module.go │ │ │ ├── module_dashboard.go │ │ │ ├── module_ethstats.go │ │ │ ├── module_faucet.go │ │ │ ├── module_nginx.go │ │ │ ├── module_node.go │ │ │ ├── puppeth.go │ │ │ ├── ssh.go │ │ │ ├── wizard.go │ │ │ ├── wizard_dashboard.go │ │ │ ├── wizard_ethstats.go │ │ │ ├── wizard_faucet.go │ │ │ ├── wizard_genesis.go │ │ │ ├── wizard_intro.go │ │ │ ├── wizard_netstats.go │ │ │ ├── wizard_network.go │ │ │ ├── wizard_nginx.go │ │ │ └── wizard_node.go │ │ ├── rlpdump │ │ │ └── main.go │ │ ├── swarm │ │ │ ├── db.go │ │ │ ├── hash.go │ │ │ ├── list.go │ │ │ ├── main.go │ │ │ ├── manifest.go │ │ │ ├── run_test.go │ │ │ ├── upload.go │ │ │ └── upload_test.go │ │ ├── utils │ │ │ ├── cmd.go │ │ │ ├── customflags.go │ │ │ ├── customflags_test.go │ │ │ ├── fdlimit_freebsd.go │ │ │ ├── fdlimit_test.go │ │ │ ├── fdlimit_unix.go │ │ │ ├── fdlimit_windows.go │ │ │ └── flags.go │ │ └── wnode │ │ │ └── main.go │ │ ├── common │ │ ├── big.go │ │ ├── bitutil │ │ │ ├── bitutil.go │ │ │ ├── bitutil_test.go │ │ │ ├── compress.go │ │ │ ├── compress_fuzz.go │ │ │ └── compress_test.go │ │ ├── bytes.go │ │ ├── bytes_test.go │ │ ├── compiler │ │ │ ├── solidity.go │ │ │ └── solidity_test.go │ │ ├── debug.go │ │ ├── format.go │ │ ├── hexutil │ │ │ ├── hexutil.go │ │ │ ├── hexutil_test.go │ │ │ ├── json.go │ │ │ ├── json_example_test.go │ │ │ └── json_test.go │ │ ├── main_test.go │ │ ├── math │ │ │ ├── big.go │ │ │ ├── big_test.go │ │ │ ├── integer.go │ │ │ └── integer_test.go │ │ ├── mclock │ │ │ └── mclock.go │ │ ├── number │ │ │ ├── int.go │ │ │ └── uint_test.go │ │ ├── path.go │ │ ├── size.go │ │ ├── size_test.go │ │ ├── test_utils.go │ │ ├── types.go │ │ ├── types_template.go │ │ └── types_test.go │ │ ├── compression │ │ └── rle │ │ │ ├── read_write.go │ │ │ └── read_write_test.go │ │ ├── consensus │ │ ├── clique │ │ │ ├── api.go │ │ │ ├── clique.go │ │ │ ├── snapshot.go │ │ │ └── snapshot_test.go │ │ ├── consensus.go │ │ ├── errors.go │ │ ├── ethash │ │ │ ├── algorithm.go │ │ │ ├── algorithm_go1.7.go │ │ │ ├── algorithm_go1.8.go │ │ │ ├── algorithm_go1.8_test.go │ │ │ ├── algorithm_test.go │ │ │ ├── consensus.go │ │ │ ├── consensus_test.go │ │ │ ├── ethash.go │ │ │ ├── ethash_test.go │ │ │ └── sealer.go │ │ └── misc │ │ │ ├── dao.go │ │ │ └── forks.go │ │ ├── console │ │ ├── bridge.go │ │ ├── console.go │ │ ├── console_test.go │ │ ├── prompter.go │ │ └── testdata │ │ │ ├── exec.js │ │ │ └── preload.js │ │ ├── containers │ │ ├── docker │ │ │ ├── develop-alpine │ │ │ │ └── Dockerfile │ │ │ ├── develop-ubuntu │ │ │ │ └── Dockerfile │ │ │ ├── master-alpine │ │ │ │ └── Dockerfile │ │ │ └── master-ubuntu │ │ │ │ └── Dockerfile │ │ └── vagrant │ │ │ ├── .gitignore │ │ │ ├── Vagrantfile │ │ │ └── provisioners │ │ │ └── shell │ │ │ ├── centos.sh │ │ │ ├── debian.sh │ │ │ └── ubuntu.sh │ │ ├── contracts │ │ ├── chequebook │ │ │ ├── api.go │ │ │ ├── cheque.go │ │ │ ├── cheque_test.go │ │ │ ├── contract │ │ │ │ ├── chequebook.go │ │ │ │ ├── chequebook.sol │ │ │ │ └── code.go │ │ │ └── gencode.go │ │ ├── ens │ │ │ ├── README.md │ │ │ ├── contract │ │ │ │ ├── ens.go │ │ │ │ └── ens.sol │ │ │ ├── ens.go │ │ │ └── ens_test.go │ │ └── release │ │ │ ├── contract.go │ │ │ ├── contract.sol │ │ │ ├── contract_test.go │ │ │ └── release.go │ │ ├── core │ │ ├── .gitignore │ │ ├── asm │ │ │ ├── asm.go │ │ │ ├── asm_test.go │ │ │ ├── compiler.go │ │ │ ├── lex_test.go │ │ │ └── lexer.go │ │ ├── bench_test.go │ │ ├── block_validator.go │ │ ├── block_validator_test.go │ │ ├── blockchain.go │ │ ├── blockchain_test.go │ │ ├── blocks.go │ │ ├── bloombits │ │ │ ├── doc.go │ │ │ ├── generator.go │ │ │ ├── generator_test.go │ │ │ ├── matcher.go │ │ │ ├── matcher_test.go │ │ │ ├── scheduler.go │ │ │ └── scheduler_test.go │ │ ├── chain_indexer.go │ │ ├── chain_indexer_test.go │ │ ├── chain_makers.go │ │ ├── chain_makers_test.go │ │ ├── dao_test.go │ │ ├── database_util.go │ │ ├── database_util_test.go │ │ ├── error.go │ │ ├── events.go │ │ ├── evm.go │ │ ├── fees.go │ │ ├── gaspool.go │ │ ├── gen_genesis.go │ │ ├── gen_genesis_account.go │ │ ├── genesis.go │ │ ├── genesis_alloc.go │ │ ├── genesis_test.go │ │ ├── headerchain.go │ │ ├── helper_test.go │ │ ├── mkalloc.go │ │ ├── state │ │ │ ├── database.go │ │ │ ├── dump.go │ │ │ ├── iterator.go │ │ │ ├── iterator_test.go │ │ │ ├── journal.go │ │ │ ├── main_test.go │ │ │ ├── managed_state.go │ │ │ ├── managed_state_test.go │ │ │ ├── state_object.go │ │ │ ├── state_test.go │ │ │ ├── statedb.go │ │ │ ├── statedb_test.go │ │ │ ├── sync.go │ │ │ └── sync_test.go │ │ ├── state_processor.go │ │ ├── state_transition.go │ │ ├── tx_journal.go │ │ ├── tx_list.go │ │ ├── tx_list_test.go │ │ ├── tx_pool.go │ │ ├── tx_pool_test.go │ │ ├── types.go │ │ ├── types │ │ │ ├── block.go │ │ │ ├── block_test.go │ │ │ ├── bloom9.go │ │ │ ├── bloom9_test.go │ │ │ ├── derive_sha.go │ │ │ ├── gen_header_json.go │ │ │ ├── gen_log_json.go │ │ │ ├── gen_receipt_json.go │ │ │ ├── gen_tx_json.go │ │ │ ├── log.go │ │ │ ├── log_test.go │ │ │ ├── receipt.go │ │ │ ├── transaction.go │ │ │ ├── transaction_signing.go │ │ │ ├── transaction_signing_test.go │ │ │ └── transaction_test.go │ │ └── vm │ │ │ ├── analysis.go │ │ │ ├── common.go │ │ │ ├── contract.go │ │ │ ├── contracts.go │ │ │ ├── contracts_test.go │ │ │ ├── doc.go │ │ │ ├── errors.go │ │ │ ├── evm.go │ │ │ ├── gas.go │ │ │ ├── gas_table.go │ │ │ ├── gas_table_test.go │ │ │ ├── gen_structlog.go │ │ │ ├── instructions.go │ │ │ ├── instructions_test.go │ │ │ ├── int_pool_verifier.go │ │ │ ├── int_pool_verifier_empty.go │ │ │ ├── interface.go │ │ │ ├── interpreter.go │ │ │ ├── intpool.go │ │ │ ├── jump_table.go │ │ │ ├── logger.go │ │ │ ├── logger_test.go │ │ │ ├── memory.go │ │ │ ├── memory_table.go │ │ │ ├── noop.go │ │ │ ├── opcodes.go │ │ │ ├── runtime │ │ │ ├── doc.go │ │ │ ├── env.go │ │ │ ├── fuzz.go │ │ │ ├── runtime.go │ │ │ ├── runtime_example_test.go │ │ │ └── runtime_test.go │ │ │ ├── stack.go │ │ │ ├── stack_table.go │ │ │ ├── vm_jit.go │ │ │ └── vm_jit_fake.go │ │ ├── crypto │ │ ├── bn256 │ │ │ ├── bn256.go │ │ │ ├── bn256_test.go │ │ │ ├── constants.go │ │ │ ├── curve.go │ │ │ ├── example_test.go │ │ │ ├── gfp12.go │ │ │ ├── gfp2.go │ │ │ ├── gfp6.go │ │ │ ├── main_test.go │ │ │ ├── optate.go │ │ │ └── twist.go │ │ ├── crypto.go │ │ ├── crypto_test.go │ │ ├── ecies │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README │ │ │ ├── ecies.go │ │ │ ├── ecies_test.go │ │ │ └── params.go │ │ ├── randentropy │ │ │ └── rand_entropy.go │ │ ├── secp256k1 │ │ │ ├── .gitignore │ │ │ ├── curve.go │ │ │ ├── ext.h │ │ │ ├── libsecp256k1 │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── COPYING │ │ │ │ ├── Makefile.am │ │ │ │ ├── README.md │ │ │ │ ├── TODO │ │ │ │ ├── autogen.sh │ │ │ │ ├── build-aux │ │ │ │ │ └── m4 │ │ │ │ │ │ ├── ax_jni_include_dir.m4 │ │ │ │ │ │ ├── ax_prog_cc_for_build.m4 │ │ │ │ │ │ └── bitcoin_secp.m4 │ │ │ │ ├── configure.ac │ │ │ │ ├── contrib │ │ │ │ │ ├── lax_der_parsing.c │ │ │ │ │ ├── lax_der_parsing.h │ │ │ │ │ ├── lax_der_privatekey_parsing.c │ │ │ │ │ └── lax_der_privatekey_parsing.h │ │ │ │ ├── include │ │ │ │ │ ├── secp256k1.h │ │ │ │ │ ├── secp256k1_ecdh.h │ │ │ │ │ └── secp256k1_recovery.h │ │ │ │ ├── libsecp256k1.pc.in │ │ │ │ ├── obj │ │ │ │ │ └── .gitignore │ │ │ │ ├── sage │ │ │ │ │ ├── group_prover.sage │ │ │ │ │ ├── secp256k1.sage │ │ │ │ │ └── weierstrass_prover.sage │ │ │ │ └── src │ │ │ │ │ ├── asm │ │ │ │ │ └── field_10x26_arm.s │ │ │ │ │ ├── basic-config.h │ │ │ │ │ ├── bench.h │ │ │ │ │ ├── bench_ecdh.c │ │ │ │ │ ├── bench_internal.c │ │ │ │ │ ├── bench_recover.c │ │ │ │ │ ├── bench_schnorr_verify.c │ │ │ │ │ ├── bench_sign.c │ │ │ │ │ ├── bench_verify.c │ │ │ │ │ ├── ecdsa.h │ │ │ │ │ ├── ecdsa_impl.h │ │ │ │ │ ├── eckey.h │ │ │ │ │ ├── eckey_impl.h │ │ │ │ │ ├── ecmult.h │ │ │ │ │ ├── ecmult_const.h │ │ │ │ │ ├── ecmult_const_impl.h │ │ │ │ │ ├── ecmult_gen.h │ │ │ │ │ ├── ecmult_gen_impl.h │ │ │ │ │ ├── ecmult_impl.h │ │ │ │ │ ├── field.h │ │ │ │ │ ├── field_10x26.h │ │ │ │ │ ├── field_10x26_impl.h │ │ │ │ │ ├── field_5x52.h │ │ │ │ │ ├── field_5x52_asm_impl.h │ │ │ │ │ ├── field_5x52_impl.h │ │ │ │ │ ├── field_5x52_int128_impl.h │ │ │ │ │ ├── field_impl.h │ │ │ │ │ ├── gen_context.c │ │ │ │ │ ├── group.h │ │ │ │ │ ├── group_impl.h │ │ │ │ │ ├── hash.h │ │ │ │ │ ├── hash_impl.h │ │ │ │ │ ├── java │ │ │ │ │ ├── org │ │ │ │ │ │ └── bitcoin │ │ │ │ │ │ │ ├── NativeSecp256k1.java │ │ │ │ │ │ │ ├── NativeSecp256k1Test.java │ │ │ │ │ │ │ ├── NativeSecp256k1Util.java │ │ │ │ │ │ │ └── Secp256k1Context.java │ │ │ │ │ ├── org_bitcoin_NativeSecp256k1.c │ │ │ │ │ ├── org_bitcoin_NativeSecp256k1.h │ │ │ │ │ ├── org_bitcoin_Secp256k1Context.c │ │ │ │ │ └── org_bitcoin_Secp256k1Context.h │ │ │ │ │ ├── modules │ │ │ │ │ ├── ecdh │ │ │ │ │ │ ├── Makefile.am.include │ │ │ │ │ │ ├── main_impl.h │ │ │ │ │ │ └── tests_impl.h │ │ │ │ │ └── recovery │ │ │ │ │ │ ├── Makefile.am.include │ │ │ │ │ │ ├── main_impl.h │ │ │ │ │ │ └── tests_impl.h │ │ │ │ │ ├── num.h │ │ │ │ │ ├── num_gmp.h │ │ │ │ │ ├── num_gmp_impl.h │ │ │ │ │ ├── num_impl.h │ │ │ │ │ ├── scalar.h │ │ │ │ │ ├── scalar_4x64.h │ │ │ │ │ ├── scalar_4x64_impl.h │ │ │ │ │ ├── scalar_8x32.h │ │ │ │ │ ├── scalar_8x32_impl.h │ │ │ │ │ ├── scalar_impl.h │ │ │ │ │ ├── scalar_low.h │ │ │ │ │ ├── scalar_low_impl.h │ │ │ │ │ ├── secp256k1.c │ │ │ │ │ ├── testrand.h │ │ │ │ │ ├── testrand_impl.h │ │ │ │ │ ├── tests.c │ │ │ │ │ ├── tests_exhaustive.c │ │ │ │ │ └── util.h │ │ │ ├── panic_cb.go │ │ │ ├── secp256.go │ │ │ └── secp256_test.go │ │ ├── sha3 │ │ │ ├── LICENSE │ │ │ ├── PATENTS │ │ │ ├── doc.go │ │ │ ├── hashes.go │ │ │ ├── keccakf.go │ │ │ ├── keccakf_amd64.go │ │ │ ├── keccakf_amd64.s │ │ │ ├── register.go │ │ │ ├── sha3.go │ │ │ ├── sha3_test.go │ │ │ ├── shake.go │ │ │ ├── testdata │ │ │ │ └── keccakKats.json.deflate │ │ │ ├── xor.go │ │ │ ├── xor_generic.go │ │ │ └── xor_unaligned.go │ │ ├── signature_cgo.go │ │ ├── signature_nocgo.go │ │ └── signature_test.go │ │ ├── eth │ │ ├── api.go │ │ ├── api_backend.go │ │ ├── api_test.go │ │ ├── backend.go │ │ ├── bind.go │ │ ├── bloombits.go │ │ ├── config.go │ │ ├── db_upgrade.go │ │ ├── downloader │ │ │ ├── api.go │ │ │ ├── downloader.go │ │ │ ├── downloader_test.go │ │ │ ├── events.go │ │ │ ├── fakepeer.go │ │ │ ├── metrics.go │ │ │ ├── modes.go │ │ │ ├── peer.go │ │ │ ├── queue.go │ │ │ ├── statesync.go │ │ │ └── types.go │ │ ├── fetcher │ │ │ ├── fetcher.go │ │ │ ├── fetcher_test.go │ │ │ └── metrics.go │ │ ├── filters │ │ │ ├── api.go │ │ │ ├── api_test.go │ │ │ ├── bench_test.go │ │ │ ├── filter.go │ │ │ ├── filter_system.go │ │ │ ├── filter_system_test.go │ │ │ └── filter_test.go │ │ ├── gasprice │ │ │ └── gasprice.go │ │ ├── gen_config.go │ │ ├── handler.go │ │ ├── handler_test.go │ │ ├── helper_test.go │ │ ├── metrics.go │ │ ├── peer.go │ │ ├── protocol.go │ │ ├── protocol_test.go │ │ ├── sync.go │ │ └── sync_test.go │ │ ├── ethclient │ │ ├── ethclient.go │ │ ├── ethclient_test.go │ │ └── signer.go │ │ ├── ethdb │ │ ├── .gitignore │ │ ├── database.go │ │ ├── database_test.go │ │ ├── interface.go │ │ └── memory_database.go │ │ ├── ethstats │ │ └── ethstats.go │ │ ├── event │ │ ├── event.go │ │ ├── event_test.go │ │ ├── example_feed_test.go │ │ ├── example_scope_test.go │ │ ├── example_subscription_test.go │ │ ├── example_test.go │ │ ├── feed.go │ │ ├── feed_test.go │ │ ├── filter │ │ │ ├── filter.go │ │ │ ├── filter_test.go │ │ │ └── generic_filter.go │ │ ├── subscription.go │ │ └── subscription_test.go │ │ ├── interfaces.go │ │ ├── internal │ │ ├── build │ │ │ ├── archive.go │ │ │ ├── azure.go │ │ │ ├── env.go │ │ │ ├── pgp.go │ │ │ └── util.go │ │ ├── cmdtest │ │ │ └── test_cmd.go │ │ ├── debug │ │ │ ├── api.go │ │ │ ├── flags.go │ │ │ ├── loudpanic.go │ │ │ ├── loudpanic_fallback.go │ │ │ ├── trace.go │ │ │ └── trace_fallback.go │ │ ├── ethapi │ │ │ ├── addrlock.go │ │ │ ├── api.go │ │ │ ├── backend.go │ │ │ ├── tracer.go │ │ │ └── tracer_test.go │ │ ├── guide │ │ │ ├── guide.go │ │ │ └── guide_test.go │ │ ├── jsre │ │ │ ├── completion.go │ │ │ ├── completion_test.go │ │ │ ├── deps │ │ │ │ ├── bignumber.js │ │ │ │ ├── bindata.go │ │ │ │ ├── deps.go │ │ │ │ └── web3.js │ │ │ ├── jsre.go │ │ │ ├── jsre_test.go │ │ │ └── pretty.go │ │ └── web3ext │ │ │ └── web3ext.go │ │ ├── les │ │ ├── api_backend.go │ │ ├── backend.go │ │ ├── distributor.go │ │ ├── distributor_test.go │ │ ├── execqueue.go │ │ ├── execqueue_test.go │ │ ├── fetcher.go │ │ ├── flowcontrol │ │ │ ├── control.go │ │ │ └── manager.go │ │ ├── handler.go │ │ ├── handler_test.go │ │ ├── helper_test.go │ │ ├── metrics.go │ │ ├── odr.go │ │ ├── odr_requests.go │ │ ├── odr_test.go │ │ ├── peer.go │ │ ├── protocol.go │ │ ├── randselect.go │ │ ├── randselect_test.go │ │ ├── request_test.go │ │ ├── retrieve.go │ │ ├── server.go │ │ ├── serverpool.go │ │ ├── sync.go │ │ └── txrelay.go │ │ ├── light │ │ ├── lightchain.go │ │ ├── lightchain_test.go │ │ ├── odr.go │ │ ├── odr_test.go │ │ ├── odr_util.go │ │ ├── trie.go │ │ ├── trie_test.go │ │ ├── txpool.go │ │ └── txpool_test.go │ │ ├── log │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── README_ETHEREUM.md │ │ ├── doc.go │ │ ├── format.go │ │ ├── handler.go │ │ ├── handler_glog.go │ │ ├── handler_go13.go │ │ ├── handler_go14.go │ │ ├── logger.go │ │ ├── root.go │ │ ├── syslog.go │ │ └── term │ │ │ ├── LICENSE │ │ │ ├── terminal_appengine.go │ │ │ ├── terminal_darwin.go │ │ │ ├── terminal_freebsd.go │ │ │ ├── terminal_linux.go │ │ │ ├── terminal_netbsd.go │ │ │ ├── terminal_notwindows.go │ │ │ ├── terminal_openbsd.go │ │ │ ├── terminal_solaris.go │ │ │ └── terminal_windows.go │ │ ├── metrics │ │ ├── disk.go │ │ ├── disk_linux.go │ │ ├── disk_nop.go │ │ └── metrics.go │ │ ├── miner │ │ ├── agent.go │ │ ├── miner.go │ │ ├── remote_agent.go │ │ ├── unconfirmed.go │ │ ├── unconfirmed_test.go │ │ └── worker.go │ │ ├── mobile │ │ ├── accounts.go │ │ ├── android_test.go │ │ ├── big.go │ │ ├── bind.go │ │ ├── common.go │ │ ├── context.go │ │ ├── discover.go │ │ ├── doc.go │ │ ├── ethclient.go │ │ ├── ethereum.go │ │ ├── geth.go │ │ ├── geth_android.go │ │ ├── geth_ios.go │ │ ├── geth_other.go │ │ ├── init.go │ │ ├── interface.go │ │ ├── logger.go │ │ ├── p2p.go │ │ ├── params.go │ │ ├── primitives.go │ │ ├── types.go │ │ └── vm.go │ │ ├── node │ │ ├── api.go │ │ ├── config.go │ │ ├── config_test.go │ │ ├── defaults.go │ │ ├── doc.go │ │ ├── errors.go │ │ ├── node.go │ │ ├── node_example_test.go │ │ ├── node_test.go │ │ ├── service.go │ │ ├── service_test.go │ │ └── utils_test.go │ │ ├── p2p │ │ ├── dial.go │ │ ├── dial_test.go │ │ ├── discover │ │ │ ├── database.go │ │ │ ├── database_test.go │ │ │ ├── node.go │ │ │ ├── node_test.go │ │ │ ├── ntp.go │ │ │ ├── table.go │ │ │ ├── table_test.go │ │ │ ├── udp.go │ │ │ └── udp_test.go │ │ ├── discv5 │ │ │ ├── database.go │ │ │ ├── database_test.go │ │ │ ├── net.go │ │ │ ├── net_test.go │ │ │ ├── node.go │ │ │ ├── node_test.go │ │ │ ├── nodeevent_string.go │ │ │ ├── ntp.go │ │ │ ├── sim_run_test.go │ │ │ ├── sim_test.go │ │ │ ├── sim_testmain_test.go │ │ │ ├── table.go │ │ │ ├── table_test.go │ │ │ ├── ticket.go │ │ │ ├── topic.go │ │ │ ├── topic_test.go │ │ │ ├── udp.go │ │ │ └── udp_test.go │ │ ├── message.go │ │ ├── message_test.go │ │ ├── metrics.go │ │ ├── nat │ │ │ ├── nat.go │ │ │ ├── nat_test.go │ │ │ ├── natpmp.go │ │ │ ├── natupnp.go │ │ │ └── natupnp_test.go │ │ ├── netutil │ │ │ ├── error.go │ │ │ ├── error_test.go │ │ │ ├── net.go │ │ │ ├── net_test.go │ │ │ ├── toobig_notwindows.go │ │ │ └── toobig_windows.go │ │ ├── peer.go │ │ ├── peer_error.go │ │ ├── peer_test.go │ │ ├── protocol.go │ │ ├── rlpx.go │ │ ├── rlpx_test.go │ │ ├── server.go │ │ ├── server_test.go │ │ └── simulations │ │ │ ├── README.md │ │ │ ├── adapters │ │ │ ├── docker.go │ │ │ ├── exec.go │ │ │ ├── inproc.go │ │ │ └── types.go │ │ │ ├── events.go │ │ │ ├── examples │ │ │ ├── README.md │ │ │ ├── ping-pong.go │ │ │ └── ping-pong.sh │ │ │ ├── http.go │ │ │ ├── http_test.go │ │ │ ├── network.go │ │ │ ├── network_test.go │ │ │ └── simulation.go │ │ ├── params │ │ ├── bootnodes.go │ │ ├── config.go │ │ ├── config_test.go │ │ ├── dao.go │ │ ├── denomination.go │ │ ├── gas_table.go │ │ ├── network_params.go │ │ ├── protocol_params.go │ │ └── version.go │ │ ├── rlp │ │ ├── decode.go │ │ ├── decode_tail_test.go │ │ ├── decode_test.go │ │ ├── doc.go │ │ ├── encode.go │ │ ├── encode_test.go │ │ ├── encoder_example_test.go │ │ ├── raw.go │ │ ├── raw_test.go │ │ └── typecache.go │ │ ├── rpc │ │ ├── client.go │ │ ├── client_example_test.go │ │ ├── client_test.go │ │ ├── doc.go │ │ ├── errors.go │ │ ├── http.go │ │ ├── inproc.go │ │ ├── ipc.go │ │ ├── ipc_unix.go │ │ ├── ipc_windows.go │ │ ├── json.go │ │ ├── json_test.go │ │ ├── server.go │ │ ├── server_test.go │ │ ├── subscription.go │ │ ├── subscription_test.go │ │ ├── types.go │ │ ├── types_test.go │ │ ├── utils.go │ │ ├── utils_test.go │ │ └── websocket.go │ │ ├── swarm │ │ ├── api │ │ │ ├── api.go │ │ │ ├── api_test.go │ │ │ ├── client │ │ │ │ ├── client.go │ │ │ │ └── client_test.go │ │ │ ├── config.go │ │ │ ├── config_test.go │ │ │ ├── filesystem.go │ │ │ ├── filesystem_test.go │ │ │ ├── http │ │ │ │ ├── error.go │ │ │ │ ├── error_templates.go │ │ │ │ ├── error_test.go │ │ │ │ ├── roundtripper.go │ │ │ │ ├── roundtripper_test.go │ │ │ │ ├── server.go │ │ │ │ ├── server_test.go │ │ │ │ └── templates.go │ │ │ ├── manifest.go │ │ │ ├── manifest_test.go │ │ │ ├── storage.go │ │ │ ├── storage_test.go │ │ │ ├── testapi.go │ │ │ ├── testdata │ │ │ │ └── test0 │ │ │ │ │ ├── img │ │ │ │ │ └── logo.png │ │ │ │ │ ├── index.css │ │ │ │ │ └── index.html │ │ │ ├── uri.go │ │ │ └── uri_test.go │ │ ├── dev │ │ │ ├── .dockerignore │ │ │ ├── .gitignore │ │ │ ├── Dockerfile │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── bashrc │ │ │ ├── run.sh │ │ │ └── scripts │ │ │ │ ├── boot-cluster.sh │ │ │ │ ├── random-uploads.sh │ │ │ │ ├── stop-cluster.sh │ │ │ │ └── util.sh │ │ ├── fuse │ │ │ ├── fuse_dir.go │ │ │ ├── fuse_file.go │ │ │ ├── fuse_root.go │ │ │ ├── swarmfs.go │ │ │ ├── swarmfs_fallback.go │ │ │ ├── swarmfs_test.go │ │ │ ├── swarmfs_unix.go │ │ │ └── swarmfs_util.go │ │ ├── network │ │ │ ├── depo.go │ │ │ ├── forwarding.go │ │ │ ├── hive.go │ │ │ ├── kademlia │ │ │ │ ├── address.go │ │ │ │ ├── address_test.go │ │ │ │ ├── kaddb.go │ │ │ │ ├── kademlia.go │ │ │ │ └── kademlia_test.go │ │ │ ├── messages.go │ │ │ ├── protocol.go │ │ │ ├── protocol_test.go │ │ │ ├── syncdb.go │ │ │ ├── syncdb_test.go │ │ │ └── syncer.go │ │ ├── services │ │ │ └── swap │ │ │ │ ├── swap.go │ │ │ │ └── swap │ │ │ │ ├── swap.go │ │ │ │ └── swap_test.go │ │ ├── storage │ │ │ ├── chunker.go │ │ │ ├── chunker_test.go │ │ │ ├── common_test.go │ │ │ ├── database.go │ │ │ ├── dbstore.go │ │ │ ├── dbstore_test.go │ │ │ ├── dpa.go │ │ │ ├── dpa_test.go │ │ │ ├── localstore.go │ │ │ ├── memstore.go │ │ │ ├── memstore_test.go │ │ │ ├── netstore.go │ │ │ ├── pyramid.go │ │ │ ├── swarmhasher.go │ │ │ └── types.go │ │ ├── swarm.go │ │ └── testutil │ │ │ └── http.go │ │ ├── tests │ │ ├── block_test.go │ │ ├── block_test_util.go │ │ ├── difficulty_test.go │ │ ├── difficulty_test_util.go │ │ ├── gen_btheader.go │ │ ├── gen_difficultytest.go │ │ ├── gen_stenv.go │ │ ├── gen_sttransaction.go │ │ ├── gen_tttransaction.go │ │ ├── gen_vmexec.go │ │ ├── init.go │ │ ├── init_test.go │ │ ├── rlp_test.go │ │ ├── rlp_test_util.go │ │ ├── state_test.go │ │ ├── state_test_util.go │ │ ├── transaction_test.go │ │ ├── transaction_test_util.go │ │ ├── vm_test.go │ │ └── vm_test_util.go │ │ ├── trie │ │ ├── encoding.go │ │ ├── encoding_test.go │ │ ├── errors.go │ │ ├── hasher.go │ │ ├── iterator.go │ │ ├── iterator_test.go │ │ ├── node.go │ │ ├── node_test.go │ │ ├── proof.go │ │ ├── proof_test.go │ │ ├── secure_trie.go │ │ ├── secure_trie_test.go │ │ ├── sync.go │ │ ├── sync_test.go │ │ ├── trie.go │ │ └── trie_test.go │ │ └── whisper │ │ ├── mailserver │ │ ├── mailserver.go │ │ └── server_test.go │ │ ├── shhclient │ │ └── client.go │ │ ├── whisperv2 │ │ ├── api.go │ │ ├── doc.go │ │ ├── envelope.go │ │ ├── envelope_test.go │ │ ├── filter.go │ │ ├── filter_test.go │ │ ├── main.go │ │ ├── message.go │ │ ├── message_test.go │ │ ├── peer.go │ │ ├── peer_test.go │ │ ├── topic.go │ │ ├── topic_test.go │ │ ├── whisper.go │ │ └── whisper_test.go │ │ └── whisperv5 │ │ ├── api.go │ │ ├── benchmarks_test.go │ │ ├── config.go │ │ ├── doc.go │ │ ├── envelope.go │ │ ├── filter.go │ │ ├── filter_test.go │ │ ├── gen_criteria_json.go │ │ ├── gen_message_json.go │ │ ├── gen_newmessage_json.go │ │ ├── message.go │ │ ├── message_test.go │ │ ├── peer.go │ │ ├── peer_test.go │ │ ├── topic.go │ │ ├── topic_test.go │ │ ├── whisper.go │ │ └── whisper_test.go ├── go-stack │ └── stack │ │ ├── .travis.yml │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── format_test.go │ │ ├── stack.go │ │ ├── stack_test.go │ │ └── stackinternal_test.go ├── onsi │ ├── ginkgo │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── config │ │ │ └── config.go │ │ ├── extensions │ │ │ └── table │ │ │ │ ├── table.go │ │ │ │ ├── table_entry.go │ │ │ │ ├── table_suite_test.go │ │ │ │ └── table_test.go │ │ ├── ginkgo │ │ │ ├── bootstrap_command.go │ │ │ ├── build_command.go │ │ │ ├── convert │ │ │ │ ├── ginkgo_ast_nodes.go │ │ │ │ ├── import.go │ │ │ │ ├── package_rewriter.go │ │ │ │ ├── test_finder.go │ │ │ │ ├── testfile_rewriter.go │ │ │ │ └── testing_t_rewriter.go │ │ │ ├── convert_command.go │ │ │ ├── generate_command.go │ │ │ ├── help_command.go │ │ │ ├── interrupthandler │ │ │ │ ├── interrupt_handler.go │ │ │ │ ├── sigquit_swallower_unix.go │ │ │ │ └── sigquit_swallower_windows.go │ │ │ ├── main.go │ │ │ ├── nodot │ │ │ │ ├── nodot.go │ │ │ │ ├── nodot_suite_test.go │ │ │ │ └── nodot_test.go │ │ │ ├── nodot_command.go │ │ │ ├── notifications.go │ │ │ ├── run_command.go │ │ │ ├── run_watch_and_build_command_flags.go │ │ │ ├── suite_runner.go │ │ │ ├── testrunner │ │ │ │ ├── log_writer.go │ │ │ │ ├── run_result.go │ │ │ │ ├── test_runner.go │ │ │ │ └── test_runner_test.go │ │ │ ├── testsuite │ │ │ │ ├── test_suite.go │ │ │ │ ├── testsuite_suite_test.go │ │ │ │ ├── testsuite_test.go │ │ │ │ ├── vendor_check_go15.go │ │ │ │ ├── vendor_check_go15_test.go │ │ │ │ └── vendor_check_go16.go │ │ │ ├── unfocus_command.go │ │ │ ├── version_command.go │ │ │ ├── watch │ │ │ │ ├── delta.go │ │ │ │ ├── delta_tracker.go │ │ │ │ ├── dependencies.go │ │ │ │ ├── package_hash.go │ │ │ │ ├── package_hashes.go │ │ │ │ └── suite.go │ │ │ └── watch_command.go │ │ ├── ginkgo_dsl.go │ │ ├── integration │ │ │ ├── _fixtures │ │ │ │ ├── convert_fixtures │ │ │ │ │ ├── extra_functions_test.go │ │ │ │ │ ├── nested │ │ │ │ │ │ └── nested_test.go │ │ │ │ │ ├── nested_without_gofiles │ │ │ │ │ │ └── subpackage │ │ │ │ │ │ │ └── nested_subpackage_test.go │ │ │ │ │ ├── outside_package_test.go │ │ │ │ │ └── xunit_test.go │ │ │ │ ├── convert_goldmasters │ │ │ │ │ ├── extra_functions_test.go │ │ │ │ │ ├── fixtures_suite_test.go │ │ │ │ │ ├── nested_subpackage_test.go │ │ │ │ │ ├── nested_suite_test.go │ │ │ │ │ ├── nested_test.go │ │ │ │ │ ├── outside_package_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── xunit_test.go │ │ │ │ ├── coverage_fixture │ │ │ │ │ ├── coverage.go │ │ │ │ │ ├── coverage_fixture_suite_test.go │ │ │ │ │ ├── coverage_fixture_test.go │ │ │ │ │ └── external_coverage_fixture │ │ │ │ │ │ └── external_coverage.go │ │ │ │ ├── does_not_compile │ │ │ │ │ ├── does_not_compile_suite_test.go │ │ │ │ │ └── does_not_compile_test.go │ │ │ │ ├── eventually_failing │ │ │ │ │ ├── eventually_failing_suite_test.go │ │ │ │ │ └── eventually_failing_test.go │ │ │ │ ├── exiting_synchronized_setup_tests │ │ │ │ │ └── exiting_synchronized_setup_tests_suite_test.go │ │ │ │ ├── fail_fixture │ │ │ │ │ ├── fail_fixture_suite_test.go │ │ │ │ │ └── fail_fixture_test.go │ │ │ │ ├── failing_after_suite │ │ │ │ │ ├── failing_after_suite_suite_test.go │ │ │ │ │ └── failing_after_suite_test.go │ │ │ │ ├── failing_before_suite │ │ │ │ │ ├── failing_before_suite_suite_test.go │ │ │ │ │ └── failing_before_suite_test.go │ │ │ │ ├── failing_ginkgo_tests │ │ │ │ │ ├── failing_ginkgo_tests.go │ │ │ │ │ ├── failing_ginkgo_tests_suite_test.go │ │ │ │ │ └── failing_ginkgo_tests_test.go │ │ │ │ ├── flags_tests │ │ │ │ │ ├── flags.go │ │ │ │ │ ├── flags_suite_test.go │ │ │ │ │ └── flags_test.go │ │ │ │ ├── focused_fixture │ │ │ │ │ ├── focused_fixture_suite_test.go │ │ │ │ │ └── focused_fixture_test.go │ │ │ │ ├── hanging_suite │ │ │ │ │ ├── hanging_suite_suite_test.go │ │ │ │ │ └── hanging_suite_test.go │ │ │ │ ├── more_ginkgo_tests │ │ │ │ │ ├── more_ginkgo_tests.go │ │ │ │ │ ├── more_ginkgo_tests_suite_test.go │ │ │ │ │ └── more_ginkgo_tests_test.go │ │ │ │ ├── no_test_fn │ │ │ │ │ ├── no_test_fn.go │ │ │ │ │ └── no_test_fn_test.go │ │ │ │ ├── no_tests │ │ │ │ │ └── no_tests.go │ │ │ │ ├── passing_ginkgo_tests │ │ │ │ │ ├── passing_ginkgo_tests.go │ │ │ │ │ ├── passing_ginkgo_tests_suite_test.go │ │ │ │ │ └── passing_ginkgo_tests_test.go │ │ │ │ ├── passing_suite_setup │ │ │ │ │ ├── passing_suite_setup_suite_test.go │ │ │ │ │ └── passing_suite_test.go │ │ │ │ ├── progress_fixture │ │ │ │ │ ├── progress_fixture_suite_test.go │ │ │ │ │ └── progress_fixture_test.go │ │ │ │ ├── skip_fixture │ │ │ │ │ ├── skip_fixture_suite_test.go │ │ │ │ │ └── skip_fixture_test.go │ │ │ │ ├── suite_command_tests │ │ │ │ │ ├── suite_command.go │ │ │ │ │ ├── suite_command_suite_test.go │ │ │ │ │ └── suite_command_test.go │ │ │ │ ├── synchronized_setup_tests │ │ │ │ │ └── synchronized_setup_tests_suite_test.go │ │ │ │ ├── tags_tests │ │ │ │ │ ├── ignored_test.go │ │ │ │ │ ├── tags_tests_suite_test.go │ │ │ │ │ └── tags_tests_test.go │ │ │ │ ├── test_description │ │ │ │ │ ├── test_description_suite_test.go │ │ │ │ │ └── test_description_test.go │ │ │ │ ├── watch_fixtures │ │ │ │ │ ├── A │ │ │ │ │ │ ├── A.go │ │ │ │ │ │ ├── A_suite_test.go │ │ │ │ │ │ └── A_test.go │ │ │ │ │ ├── B │ │ │ │ │ │ ├── B.go │ │ │ │ │ │ ├── B_suite_test.go │ │ │ │ │ │ └── B_test.go │ │ │ │ │ ├── C │ │ │ │ │ │ ├── C.go │ │ │ │ │ │ ├── C.json │ │ │ │ │ │ ├── C_suite_test.go │ │ │ │ │ │ └── C_test.go │ │ │ │ │ └── D │ │ │ │ │ │ ├── D.go │ │ │ │ │ │ ├── D_suite_test.go │ │ │ │ │ │ └── D_test.go │ │ │ │ └── xunit_tests │ │ │ │ │ ├── xunit_tests.go │ │ │ │ │ └── xunit_tests_test.go │ │ │ ├── convert_test.go │ │ │ ├── coverage_test.go │ │ │ ├── fail_test.go │ │ │ ├── flags_test.go │ │ │ ├── integration.go │ │ │ ├── integration_suite_test.go │ │ │ ├── interrupt_test.go │ │ │ ├── precompiled_test.go │ │ │ ├── progress_test.go │ │ │ ├── run_test.go │ │ │ ├── skip_test.go │ │ │ ├── subcommand_test.go │ │ │ ├── suite_command_test.go │ │ │ ├── suite_setup_test.go │ │ │ ├── tags_test.go │ │ │ ├── test_description_test.go │ │ │ ├── verbose_and_succinct_test.go │ │ │ └── watch_test.go │ │ ├── internal │ │ │ ├── codelocation │ │ │ │ ├── code_location.go │ │ │ │ ├── code_location_suite_test.go │ │ │ │ └── code_location_test.go │ │ │ ├── containernode │ │ │ │ ├── container_node.go │ │ │ │ ├── container_node_suite_test.go │ │ │ │ └── container_node_test.go │ │ │ ├── failer │ │ │ │ ├── failer.go │ │ │ │ ├── failer_suite_test.go │ │ │ │ └── failer_test.go │ │ │ ├── leafnodes │ │ │ │ ├── benchmarker.go │ │ │ │ ├── interfaces.go │ │ │ │ ├── it_node.go │ │ │ │ ├── it_node_test.go │ │ │ │ ├── leaf_node_suite_test.go │ │ │ │ ├── measure_node.go │ │ │ │ ├── measure_node_test.go │ │ │ │ ├── runner.go │ │ │ │ ├── setup_nodes.go │ │ │ │ ├── setup_nodes_test.go │ │ │ │ ├── shared_runner_test.go │ │ │ │ ├── suite_nodes.go │ │ │ │ ├── suite_nodes_test.go │ │ │ │ ├── synchronized_after_suite_node.go │ │ │ │ ├── synchronized_after_suite_node_test.go │ │ │ │ ├── synchronized_before_suite_node.go │ │ │ │ └── synchronized_before_suite_node_test.go │ │ │ ├── remote │ │ │ │ ├── aggregator.go │ │ │ │ ├── aggregator_test.go │ │ │ │ ├── fake_output_interceptor_test.go │ │ │ │ ├── fake_poster_test.go │ │ │ │ ├── forwarding_reporter.go │ │ │ │ ├── forwarding_reporter_test.go │ │ │ │ ├── output_interceptor.go │ │ │ │ ├── output_interceptor_unix.go │ │ │ │ ├── output_interceptor_win.go │ │ │ │ ├── remote_suite_test.go │ │ │ │ ├── server.go │ │ │ │ ├── server_test.go │ │ │ │ ├── syscall_dup_linux_arm64.go │ │ │ │ ├── syscall_dup_solaris.go │ │ │ │ └── syscall_dup_unix.go │ │ │ ├── spec │ │ │ │ ├── spec.go │ │ │ │ ├── spec_suite_test.go │ │ │ │ ├── spec_test.go │ │ │ │ ├── specs.go │ │ │ │ └── specs_test.go │ │ │ ├── spec_iterator │ │ │ │ ├── index_computer.go │ │ │ │ ├── index_computer_test.go │ │ │ │ ├── parallel_spec_iterator.go │ │ │ │ ├── parallel_spec_iterator_test.go │ │ │ │ ├── serial_spec_iterator.go │ │ │ │ ├── serial_spec_iterator_test.go │ │ │ │ ├── sharded_parallel_spec_iterator.go │ │ │ │ ├── sharded_parallel_spec_iterator_test.go │ │ │ │ ├── spec_iterator.go │ │ │ │ └── spec_iterator_suite_test.go │ │ │ ├── specrunner │ │ │ │ ├── random_id.go │ │ │ │ ├── spec_runner.go │ │ │ │ ├── spec_runner_suite_test.go │ │ │ │ └── spec_runner_test.go │ │ │ ├── suite │ │ │ │ ├── suite.go │ │ │ │ ├── suite_suite_test.go │ │ │ │ └── suite_test.go │ │ │ ├── testingtproxy │ │ │ │ └── testing_t_proxy.go │ │ │ └── writer │ │ │ │ ├── fake_writer.go │ │ │ │ ├── writer.go │ │ │ │ ├── writer_suite_test.go │ │ │ │ └── writer_test.go │ │ ├── reporters │ │ │ ├── default_reporter.go │ │ │ ├── default_reporter_test.go │ │ │ ├── fake_reporter.go │ │ │ ├── junit_reporter.go │ │ │ ├── junit_reporter_test.go │ │ │ ├── reporter.go │ │ │ ├── reporters_suite_test.go │ │ │ ├── stenographer │ │ │ │ ├── console_logging.go │ │ │ │ ├── fake_stenographer.go │ │ │ │ ├── stenographer.go │ │ │ │ └── support │ │ │ │ │ ├── README.md │ │ │ │ │ ├── go-colorable │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── colorable_others.go │ │ │ │ │ ├── colorable_windows.go │ │ │ │ │ └── noncolorable.go │ │ │ │ │ └── go-isatty │ │ │ │ │ ├── LICENSE │ │ │ │ │ ├── README.md │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── isatty_appengine.go │ │ │ │ │ ├── isatty_bsd.go │ │ │ │ │ ├── isatty_linux.go │ │ │ │ │ ├── isatty_solaris.go │ │ │ │ │ └── isatty_windows.go │ │ │ ├── teamcity_reporter.go │ │ │ └── teamcity_reporter_test.go │ │ └── types │ │ │ ├── code_location.go │ │ │ ├── synchronization.go │ │ │ ├── types.go │ │ │ ├── types_suite_test.go │ │ │ └── types_test.go │ └── gomega │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── format │ │ ├── format.go │ │ ├── format_suite_test.go │ │ └── format_test.go │ │ ├── gbytes │ │ ├── buffer.go │ │ ├── buffer_test.go │ │ ├── gbuffer_suite_test.go │ │ ├── say_matcher.go │ │ └── say_matcher_test.go │ │ ├── gexec │ │ ├── _fixture │ │ │ └── firefly │ │ │ │ └── main.go │ │ ├── build.go │ │ ├── build_test.go │ │ ├── exit_matcher.go │ │ ├── exit_matcher_test.go │ │ ├── gexec_suite_test.go │ │ ├── prefixed_writer.go │ │ ├── prefixed_writer_test.go │ │ ├── session.go │ │ └── session_test.go │ │ ├── ghttp │ │ ├── handlers.go │ │ ├── protobuf │ │ │ ├── protobuf.go │ │ │ ├── simple_message.pb.go │ │ │ └── simple_message.proto │ │ ├── test_server.go │ │ ├── test_server_suite_test.go │ │ └── test_server_test.go │ │ ├── gomega_dsl.go │ │ ├── gstruct │ │ ├── elements.go │ │ ├── elements_test.go │ │ ├── errors │ │ │ └── nested_types.go │ │ ├── fields.go │ │ ├── fields_test.go │ │ ├── gstruct_tests_suite_test.go │ │ ├── ignore.go │ │ ├── ignore_test.go │ │ ├── pointer.go │ │ ├── pointer_test.go │ │ └── types.go │ │ ├── internal │ │ ├── assertion │ │ │ ├── assertion.go │ │ │ ├── assertion_suite_test.go │ │ │ └── assertion_test.go │ │ ├── asyncassertion │ │ │ ├── async_assertion.go │ │ │ ├── async_assertion_suite_test.go │ │ │ └── async_assertion_test.go │ │ ├── fakematcher │ │ │ └── fake_matcher.go │ │ ├── oraclematcher │ │ │ └── oracle_matcher.go │ │ └── testingtsupport │ │ │ ├── testing_t_support.go │ │ │ └── testing_t_support_test.go │ │ ├── matchers.go │ │ ├── matchers │ │ ├── and.go │ │ ├── and_test.go │ │ ├── assignable_to_type_of_matcher.go │ │ ├── assignable_to_type_of_matcher_test.go │ │ ├── be_a_directory.go │ │ ├── be_a_directory_test.go │ │ ├── be_a_regular_file.go │ │ ├── be_a_regular_file_test.go │ │ ├── be_an_existing_file.go │ │ ├── be_an_existing_file_test.go │ │ ├── be_closed_matcher.go │ │ ├── be_closed_matcher_test.go │ │ ├── be_empty_matcher.go │ │ ├── be_empty_matcher_test.go │ │ ├── be_equivalent_to_matcher.go │ │ ├── be_equivalent_to_matcher_test.go │ │ ├── be_false_matcher.go │ │ ├── be_false_matcher_test.go │ │ ├── be_identical_to.go │ │ ├── be_identical_to_test.go │ │ ├── be_nil_matcher.go │ │ ├── be_nil_matcher_test.go │ │ ├── be_numerically_matcher.go │ │ ├── be_numerically_matcher_test.go │ │ ├── be_sent_matcher.go │ │ ├── be_sent_matcher_test.go │ │ ├── be_temporally_matcher.go │ │ ├── be_temporally_matcher_test.go │ │ ├── be_true_matcher.go │ │ ├── be_true_matcher_test.go │ │ ├── be_zero_matcher.go │ │ ├── be_zero_matcher_test.go │ │ ├── consist_of.go │ │ ├── consist_of_test.go │ │ ├── contain_element_matcher.go │ │ ├── contain_element_matcher_test.go │ │ ├── contain_substring_matcher.go │ │ ├── contain_substring_matcher_test.go │ │ ├── equal_matcher.go │ │ ├── equal_matcher_test.go │ │ ├── have_cap_matcher.go │ │ ├── have_cap_matcher_test.go │ │ ├── have_key_matcher.go │ │ ├── have_key_matcher_test.go │ │ ├── have_key_with_value_matcher.go │ │ ├── have_key_with_value_matcher_test.go │ │ ├── have_len_matcher.go │ │ ├── have_len_matcher_test.go │ │ ├── have_occurred_matcher.go │ │ ├── have_occurred_matcher_test.go │ │ ├── have_prefix_matcher.go │ │ ├── have_prefix_matcher_test.go │ │ ├── have_suffix_matcher.go │ │ ├── have_suffix_matcher_test.go │ │ ├── match_error_matcher.go │ │ ├── match_error_matcher_test.go │ │ ├── match_json_matcher.go │ │ ├── match_json_matcher_test.go │ │ ├── match_regexp_matcher.go │ │ ├── match_regexp_matcher_test.go │ │ ├── match_yaml_matcher.go │ │ ├── match_yaml_matcher_test.go │ │ ├── matcher_tests_suite_test.go │ │ ├── not.go │ │ ├── not_test.go │ │ ├── or.go │ │ ├── or_test.go │ │ ├── panic_matcher.go │ │ ├── panic_matcher_test.go │ │ ├── receive_matcher.go │ │ ├── receive_matcher_test.go │ │ ├── succeed_matcher.go │ │ ├── succeed_matcher_test.go │ │ ├── support │ │ │ └── goraph │ │ │ │ ├── MIT.LICENSE │ │ │ │ ├── bipartitegraph │ │ │ │ ├── bipartitegraph.go │ │ │ │ └── bipartitegraphmatching.go │ │ │ │ ├── edge │ │ │ │ └── edge.go │ │ │ │ ├── node │ │ │ │ └── node.go │ │ │ │ └── util │ │ │ │ └── util.go │ │ ├── type_support.go │ │ ├── with_transform.go │ │ └── with_transform_test.go │ │ └── types │ │ └── types.go ├── pmezard │ └── go-difflib │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ └── difflib │ │ ├── difflib.go │ │ └── difflib_test.go ├── rcrowley │ └── go-metrics │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── cmd │ │ ├── metrics-bench │ │ │ └── metrics-bench.go │ │ ├── metrics-example │ │ │ └── metrics-example.go │ │ └── never-read │ │ │ └── never-read.go │ │ ├── counter.go │ │ ├── counter_test.go │ │ ├── debug.go │ │ ├── debug_test.go │ │ ├── ewma.go │ │ ├── ewma_test.go │ │ ├── exp │ │ └── exp.go │ │ ├── gauge.go │ │ ├── gauge_float64.go │ │ ├── gauge_float64_test.go │ │ ├── gauge_test.go │ │ ├── graphite.go │ │ ├── graphite_test.go │ │ ├── healthcheck.go │ │ ├── histogram.go │ │ ├── histogram_test.go │ │ ├── json.go │ │ ├── json_test.go │ │ ├── librato │ │ ├── client.go │ │ └── librato.go │ │ ├── log.go │ │ ├── memory.md │ │ ├── meter.go │ │ ├── meter_test.go │ │ ├── metrics.go │ │ ├── metrics_test.go │ │ ├── opentsdb.go │ │ ├── opentsdb_test.go │ │ ├── registry.go │ │ ├── registry_test.go │ │ ├── runtime.go │ │ ├── runtime_cgo.go │ │ ├── runtime_gccpufraction.go │ │ ├── runtime_no_cgo.go │ │ ├── runtime_no_gccpufraction.go │ │ ├── runtime_test.go │ │ ├── sample.go │ │ ├── sample_test.go │ │ ├── stathat │ │ └── stathat.go │ │ ├── syslog.go │ │ ├── timer.go │ │ ├── timer_test.go │ │ ├── validate.sh │ │ ├── writer.go │ │ └── writer_test.go └── stretchr │ ├── objx │ ├── .gitignore │ ├── LICENSE.md │ ├── README.md │ ├── accessors.go │ ├── accessors_test.go │ ├── codegen │ │ ├── array-access.txt │ │ ├── index.html │ │ ├── template.txt │ │ └── types_list.txt │ ├── constants.go │ ├── conversions.go │ ├── conversions_test.go │ ├── doc.go │ ├── fixture_test.go │ ├── map.go │ ├── map_for_test.go │ ├── map_test.go │ ├── mutations.go │ ├── mutations_test.go │ ├── security.go │ ├── security_test.go │ ├── simple_example_test.go │ ├── tests.go │ ├── tests_test.go │ ├── type_specific_codegen.go │ ├── type_specific_codegen_test.go │ ├── value.go │ └── value_test.go │ └── testify │ ├── .gitignore │ ├── .travis.yml │ ├── Godeps │ ├── Godeps.json │ └── Readme │ ├── LICENCE.txt │ ├── LICENSE │ ├── README.md │ ├── _codegen │ └── main.go │ ├── assert │ ├── assertion_forward.go │ ├── assertion_forward.go.tmpl │ ├── assertions.go │ ├── assertions_test.go │ ├── doc.go │ ├── errors.go │ ├── forward_assertions.go │ ├── forward_assertions_test.go │ ├── http_assertions.go │ └── http_assertions_test.go │ ├── doc.go │ ├── http │ ├── doc.go │ ├── test_response_writer.go │ └── test_round_tripper.go │ ├── mock │ ├── doc.go │ ├── mock.go │ └── mock_test.go │ ├── package_test.go │ ├── require │ ├── doc.go │ ├── forward_requirements.go │ ├── forward_requirements_test.go │ ├── require.go │ ├── require.go.tmpl │ ├── require_forward.go │ ├── require_forward.go.tmpl │ ├── requirements.go │ └── requirements_test.go │ └── suite │ ├── doc.go │ ├── interfaces.go │ ├── suite.go │ └── suite_test.go ├── golang.org └── x │ └── sys │ ├── .gitattributes │ ├── .gitignore │ ├── AUTHORS │ ├── CONTRIBUTING.md │ ├── CONTRIBUTORS │ ├── LICENSE │ ├── PATENTS │ ├── README.md │ ├── codereview.cfg │ ├── plan9 │ ├── asm.s │ ├── asm_plan9_386.s │ ├── asm_plan9_amd64.s │ ├── const_plan9.go │ ├── dir_plan9.go │ ├── env_plan9.go │ ├── env_unset.go │ ├── errors_plan9.go │ ├── mkall.sh │ ├── mkerrors.sh │ ├── mksyscall.pl │ ├── mksysnum_plan9.sh │ ├── pwd_go15_plan9.go │ ├── pwd_plan9.go │ ├── race.go │ ├── race0.go │ ├── str.go │ ├── syscall.go │ ├── syscall_plan9.go │ ├── syscall_test.go │ ├── zsyscall_plan9_386.go │ ├── zsyscall_plan9_amd64.go │ └── zsysnum_plan9.go │ ├── unix │ ├── .gitignore │ ├── README.md │ ├── asm_darwin_386.s │ ├── asm_darwin_amd64.s │ ├── asm_darwin_arm.s │ ├── asm_darwin_arm64.s │ ├── asm_dragonfly_amd64.s │ ├── asm_freebsd_386.s │ ├── asm_freebsd_amd64.s │ ├── asm_freebsd_arm.s │ ├── asm_linux_386.s │ ├── asm_linux_amd64.s │ ├── asm_linux_arm.s │ ├── asm_linux_arm64.s │ ├── asm_linux_mips64x.s │ ├── asm_linux_mipsx.s │ ├── asm_linux_ppc64x.s │ ├── asm_linux_s390x.s │ ├── asm_netbsd_386.s │ ├── asm_netbsd_amd64.s │ ├── asm_netbsd_arm.s │ ├── asm_openbsd_386.s │ ├── asm_openbsd_amd64.s │ ├── asm_openbsd_arm.s │ ├── asm_solaris_amd64.s │ ├── bluetooth_linux.go │ ├── cap_freebsd.go │ ├── constants.go │ ├── creds_test.go │ ├── dev_darwin.go │ ├── dev_darwin_test.go │ ├── dev_dragonfly.go │ ├── dev_dragonfly_test.go │ ├── dev_freebsd.go │ ├── dev_linux.go │ ├── dev_linux_test.go │ ├── dev_netbsd.go │ ├── dev_netbsd_test.go │ ├── dev_openbsd.go │ ├── dev_openbsd_test.go │ ├── dev_solaris_test.go │ ├── dirent.go │ ├── endian_big.go │ ├── endian_little.go │ ├── env_unix.go │ ├── env_unset.go │ ├── errors_freebsd_386.go │ ├── errors_freebsd_amd64.go │ ├── errors_freebsd_arm.go │ ├── export_test.go │ ├── file_unix.go │ ├── flock.go │ ├── flock_linux_32bit.go │ ├── gccgo.go │ ├── gccgo_c.c │ ├── gccgo_linux_amd64.go │ ├── linux │ │ ├── Dockerfile │ │ ├── mkall.go │ │ ├── mksysnum.pl │ │ └── types.go │ ├── mkall.sh │ ├── mkerrors.sh │ ├── mkpost.go │ ├── mksyscall.pl │ ├── mksyscall_solaris.pl │ ├── mksysctl_openbsd.pl │ ├── mksysnum_darwin.pl │ ├── mksysnum_dragonfly.pl │ ├── mksysnum_freebsd.pl │ ├── mksysnum_netbsd.pl │ ├── mksysnum_openbsd.pl │ ├── mmap_unix_test.go │ ├── openbsd_pledge.go │ ├── openbsd_test.go │ ├── pagesize_unix.go │ ├── race.go │ ├── race0.go │ ├── sockcmsg_linux.go │ ├── sockcmsg_unix.go │ ├── str.go │ ├── syscall.go │ ├── syscall_bsd.go │ ├── syscall_bsd_test.go │ ├── syscall_darwin.go │ ├── syscall_darwin_386.go │ ├── syscall_darwin_amd64.go │ ├── syscall_darwin_arm.go │ ├── syscall_darwin_arm64.go │ ├── syscall_dragonfly.go │ ├── syscall_dragonfly_amd64.go │ ├── syscall_freebsd.go │ ├── syscall_freebsd_386.go │ ├── syscall_freebsd_amd64.go │ ├── syscall_freebsd_arm.go │ ├── syscall_freebsd_test.go │ ├── syscall_linux.go │ ├── syscall_linux_386.go │ ├── syscall_linux_amd64.go │ ├── syscall_linux_amd64_gc.go │ ├── syscall_linux_arm.go │ ├── syscall_linux_arm64.go │ ├── syscall_linux_mips64x.go │ ├── syscall_linux_mipsx.go │ ├── syscall_linux_ppc64x.go │ ├── syscall_linux_s390x.go │ ├── syscall_linux_sparc64.go │ ├── syscall_linux_test.go │ ├── syscall_netbsd.go │ ├── syscall_netbsd_386.go │ ├── syscall_netbsd_amd64.go │ ├── syscall_netbsd_arm.go │ ├── syscall_no_getwd.go │ ├── syscall_openbsd.go │ ├── syscall_openbsd_386.go │ ├── syscall_openbsd_amd64.go │ ├── syscall_openbsd_arm.go │ ├── syscall_solaris.go │ ├── syscall_solaris_amd64.go │ ├── syscall_solaris_test.go │ ├── syscall_test.go │ ├── syscall_unix.go │ ├── syscall_unix_gc.go │ ├── syscall_unix_test.go │ ├── types_darwin.go │ ├── types_dragonfly.go │ ├── types_freebsd.go │ ├── types_netbsd.go │ ├── types_openbsd.go │ ├── types_solaris.go │ ├── zerrors_darwin_386.go │ ├── zerrors_darwin_amd64.go │ ├── zerrors_darwin_arm.go │ ├── zerrors_darwin_arm64.go │ ├── zerrors_dragonfly_amd64.go │ ├── zerrors_freebsd_386.go │ ├── zerrors_freebsd_amd64.go │ ├── zerrors_freebsd_arm.go │ ├── zerrors_linux_386.go │ ├── zerrors_linux_amd64.go │ ├── zerrors_linux_arm.go │ ├── zerrors_linux_arm64.go │ ├── zerrors_linux_mips.go │ ├── zerrors_linux_mips64.go │ ├── zerrors_linux_mips64le.go │ ├── zerrors_linux_mipsle.go │ ├── zerrors_linux_ppc64.go │ ├── zerrors_linux_ppc64le.go │ ├── zerrors_linux_s390x.go │ ├── zerrors_linux_sparc64.go │ ├── zerrors_netbsd_386.go │ ├── zerrors_netbsd_amd64.go │ ├── zerrors_netbsd_arm.go │ ├── zerrors_openbsd_386.go │ ├── zerrors_openbsd_amd64.go │ ├── zerrors_openbsd_arm.go │ ├── zerrors_solaris_amd64.go │ ├── zsyscall_darwin_386.go │ ├── zsyscall_darwin_amd64.go │ ├── zsyscall_darwin_arm.go │ ├── zsyscall_darwin_arm64.go │ ├── zsyscall_dragonfly_amd64.go │ ├── zsyscall_freebsd_386.go │ ├── zsyscall_freebsd_amd64.go │ ├── zsyscall_freebsd_arm.go │ ├── zsyscall_linux_386.go │ ├── zsyscall_linux_amd64.go │ ├── zsyscall_linux_arm.go │ ├── zsyscall_linux_arm64.go │ ├── zsyscall_linux_mips.go │ ├── zsyscall_linux_mips64.go │ ├── zsyscall_linux_mips64le.go │ ├── zsyscall_linux_mipsle.go │ ├── zsyscall_linux_ppc64.go │ ├── zsyscall_linux_ppc64le.go │ ├── zsyscall_linux_s390x.go │ ├── zsyscall_linux_sparc64.go │ ├── zsyscall_netbsd_386.go │ ├── zsyscall_netbsd_amd64.go │ ├── zsyscall_netbsd_arm.go │ ├── zsyscall_openbsd_386.go │ ├── zsyscall_openbsd_amd64.go │ ├── zsyscall_openbsd_arm.go │ ├── zsyscall_solaris_amd64.go │ ├── zsysctl_openbsd_386.go │ ├── zsysctl_openbsd_amd64.go │ ├── zsysctl_openbsd_arm.go │ ├── zsysnum_darwin_386.go │ ├── zsysnum_darwin_amd64.go │ ├── zsysnum_darwin_arm.go │ ├── zsysnum_darwin_arm64.go │ ├── zsysnum_dragonfly_amd64.go │ ├── zsysnum_freebsd_386.go │ ├── zsysnum_freebsd_amd64.go │ ├── zsysnum_freebsd_arm.go │ ├── zsysnum_linux_386.go │ ├── zsysnum_linux_amd64.go │ ├── zsysnum_linux_arm.go │ ├── zsysnum_linux_arm64.go │ ├── zsysnum_linux_mips.go │ ├── zsysnum_linux_mips64.go │ ├── zsysnum_linux_mips64le.go │ ├── zsysnum_linux_mipsle.go │ ├── zsysnum_linux_ppc64.go │ ├── zsysnum_linux_ppc64le.go │ ├── zsysnum_linux_s390x.go │ ├── zsysnum_linux_sparc64.go │ ├── zsysnum_netbsd_386.go │ ├── zsysnum_netbsd_amd64.go │ ├── zsysnum_netbsd_arm.go │ ├── zsysnum_openbsd_386.go │ ├── zsysnum_openbsd_amd64.go │ ├── zsysnum_openbsd_arm.go │ ├── zsysnum_solaris_amd64.go │ ├── ztypes_darwin_386.go │ ├── ztypes_darwin_amd64.go │ ├── ztypes_darwin_arm.go │ ├── ztypes_darwin_arm64.go │ ├── ztypes_dragonfly_amd64.go │ ├── ztypes_freebsd_386.go │ ├── ztypes_freebsd_amd64.go │ ├── ztypes_freebsd_arm.go │ ├── ztypes_linux_386.go │ ├── ztypes_linux_amd64.go │ ├── ztypes_linux_arm.go │ ├── ztypes_linux_arm64.go │ ├── ztypes_linux_mips.go │ ├── ztypes_linux_mips64.go │ ├── ztypes_linux_mips64le.go │ ├── ztypes_linux_mipsle.go │ ├── ztypes_linux_ppc64.go │ ├── ztypes_linux_ppc64le.go │ ├── ztypes_linux_s390x.go │ ├── ztypes_linux_sparc64.go │ ├── ztypes_netbsd_386.go │ ├── ztypes_netbsd_amd64.go │ ├── ztypes_netbsd_arm.go │ ├── ztypes_openbsd_386.go │ ├── ztypes_openbsd_amd64.go │ ├── ztypes_openbsd_arm.go │ └── ztypes_solaris_amd64.go │ └── windows │ ├── asm_windows_386.s │ ├── asm_windows_amd64.s │ ├── dll_windows.go │ ├── env_unset.go │ ├── env_windows.go │ ├── eventlog.go │ ├── exec_windows.go │ ├── memory_windows.go │ ├── mksyscall.go │ ├── race.go │ ├── race0.go │ ├── registry │ ├── export_test.go │ ├── key.go │ ├── mksyscall.go │ ├── registry_test.go │ ├── syscall.go │ ├── value.go │ └── zsyscall_windows.go │ ├── security_windows.go │ ├── service.go │ ├── str.go │ ├── svc │ ├── debug │ │ ├── log.go │ │ └── service.go │ ├── event.go │ ├── eventlog │ │ ├── install.go │ │ ├── log.go │ │ └── log_test.go │ ├── example │ │ ├── beep.go │ │ ├── install.go │ │ ├── main.go │ │ ├── manage.go │ │ └── service.go │ ├── go12.c │ ├── go12.go │ ├── go13.go │ ├── mgr │ │ ├── config.go │ │ ├── mgr.go │ │ ├── mgr_test.go │ │ └── service.go │ ├── security.go │ ├── service.go │ ├── svc_test.go │ ├── sys_386.s │ └── sys_amd64.s │ ├── syscall.go │ ├── syscall_test.go │ ├── syscall_windows.go │ ├── syscall_windows_test.go │ ├── types_windows.go │ ├── types_windows_386.go │ ├── types_windows_amd64.go │ └── zsyscall_windows.go └── gopkg.in ├── karalabe └── cookiejar.v2 │ ├── LICENSE │ ├── README.md │ ├── ai │ └── utility │ │ ├── combo.go │ │ ├── comboset.go │ │ ├── curves │ │ ├── exponential.go │ │ ├── linear.go │ │ └── logistic.go │ │ ├── input.go │ │ ├── inputset.go │ │ ├── system.go │ │ └── utility.go │ ├── collections │ ├── bag │ │ ├── bag.go │ │ ├── bag_test.go │ │ └── example_test.go │ ├── deque │ │ ├── deque.go │ │ ├── deque_test.go │ │ └── example_test.go │ ├── prque │ │ ├── example_test.go │ │ ├── prque.go │ │ ├── prque_test.go │ │ ├── sstack.go │ │ └── sstack_test.go │ ├── queue │ │ ├── example_test.go │ │ ├── queue.go │ │ └── queue_test.go │ ├── set │ │ ├── example_test.go │ │ ├── set.go │ │ └── set_test.go │ └── stack │ │ ├── example_test.go │ │ ├── stack.go │ │ └── stack_test.go │ ├── exts │ ├── fmtext │ │ └── fmt.go │ ├── mathext │ │ ├── example_test.go │ │ ├── math.go │ │ └── math_test.go │ ├── osext │ │ ├── os.go │ │ └── os_test.go │ └── sortext │ │ ├── example_test.go │ │ ├── search.go │ │ ├── search_test.go │ │ ├── sort.go │ │ ├── sort_test.go │ │ ├── unique.go │ │ └── unique_test.go │ ├── geometry │ ├── geometry.go │ ├── line.go │ ├── line_test.go │ ├── point.go │ ├── point_test.go │ └── vector.go │ ├── graph │ ├── bfs │ │ ├── bfs.go │ │ ├── bfs_test.go │ │ └── example_test.go │ ├── dfs │ │ ├── dfs.go │ │ ├── dfs_test.go │ │ └── example_test.go │ ├── example_test.go │ ├── graph.go │ └── graph_test.go │ └── tools │ ├── arenas │ └── codingame │ │ ├── backend.go │ │ ├── frontend.go │ │ └── notifications.go │ └── deps │ └── merge.go └── yaml.v2 ├── .travis.yml ├── LICENSE ├── LICENSE.libyaml ├── README.md ├── apic.go ├── decode.go ├── decode_test.go ├── emitterc.go ├── encode.go ├── encode_test.go ├── example_embedded_test.go ├── parserc.go ├── readerc.go ├── resolve.go ├── scannerc.go ├── sorter.go ├── suite_test.go ├── writerc.go ├── yaml.go ├── yamlh.go └── yamlprivateh.go /Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | # Gopkg.toml example 3 | # 4 | # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md 5 | # for detailed Gopkg.toml documentation. 6 | # 7 | # required = ["github.com/user/thing/cmd/thing"] 8 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] 9 | # 10 | # [[constraint]] 11 | # name = "github.com/user/project" 12 | # version = "1.0.0" 13 | # 14 | # [[constraint]] 15 | # name = "github.com/user/project2" 16 | # branch = "dev" 17 | # source = "github.com/myfork/project2" 18 | # 19 | # [[override]] 20 | # name = "github.com/x/y" 21 | # version = "2.4.0" 22 | 23 | 24 | [[constraint]] 25 | name = "github.com/ethereum/go-ethereum" 26 | version = "1.7.3" 27 | 28 | [[constraint]] 29 | name = "github.com/onsi/ginkgo" 30 | version = "1.4.0" 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # listener 2 | event listener for smart contracts 3 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/.gitignore: -------------------------------------------------------------------------------- 1 | # Temp files 2 | *~ 3 | 4 | # Databases 5 | btcd.db 6 | *-shm 7 | *-wal 8 | 9 | # Log files 10 | *.log 11 | 12 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 13 | *.o 14 | *.a 15 | *.so 16 | 17 | # Folders 18 | _obj 19 | _test 20 | vendor 21 | 22 | # Architecture specific extensions/prefixes 23 | *.[568vq] 24 | [568vq].out 25 | 26 | *.cgo1.go 27 | *.cgo2.c 28 | _cgo_defun.c 29 | _cgo_gotypes.go 30 | _cgo_export.* 31 | 32 | _testmain.go 33 | 34 | *.exe 35 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.8.x 4 | - 1.9.x 5 | sudo: false 6 | install: 7 | - GLIDE_TAG=v0.12.3 8 | - GLIDE_DOWNLOAD="https://github.com/Masterminds/glide/releases/download/$GLIDE_TAG/glide-$GLIDE_TAG-linux-amd64.tar.gz" 9 | - curl -L $GLIDE_DOWNLOAD | tar -xvz 10 | - export PATH=$PATH:$PWD/linux-amd64/ 11 | - glide install 12 | - go install . ./cmd/... 13 | - go get -v github.com/alecthomas/gometalinter 14 | - gometalinter --install 15 | script: 16 | - export PATH=$PATH:$HOME/gopath/bin 17 | - ./goclean.sh 18 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/addrmgr/cov_report.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This script uses gocov to generate a test coverage report. 4 | # The gocov tool my be obtained with the following command: 5 | # go get github.com/axw/gocov/gocov 6 | # 7 | # It will be installed to $GOPATH/bin, so ensure that location is in your $PATH. 8 | 9 | # Check for gocov. 10 | type gocov >/dev/null 2>&1 11 | if [ $? -ne 0 ]; then 12 | echo >&2 "This script requires the gocov tool." 13 | echo >&2 "You may obtain it with the following command:" 14 | echo >&2 "go get github.com/axw/gocov/gocov" 15 | exit 1 16 | fi 17 | gocov test | gocov report 18 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/addrmgr/internal_test.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013-2015 The btcsuite developers 2 | // Use of this source code is governed by an ISC 3 | // license that can be found in the LICENSE file. 4 | 5 | package addrmgr 6 | 7 | import ( 8 | "time" 9 | 10 | "github.com/btcsuite/btcd/wire" 11 | ) 12 | 13 | func TstKnownAddressIsBad(ka *KnownAddress) bool { 14 | return ka.isBad() 15 | } 16 | 17 | func TstKnownAddressChance(ka *KnownAddress) float64 { 18 | return ka.chance() 19 | } 20 | 21 | func TstNewKnownAddress(na *wire.NetAddress, attempts int, 22 | lastattempt, lastsuccess time.Time, tried bool, refs int) *KnownAddress { 23 | return &KnownAddress{na: na, attempts: attempts, lastattempt: lastattempt, 24 | lastsuccess: lastsuccess, tried: tried, refs: refs} 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/blockchain/merkle_test.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013-2017 The btcsuite developers 2 | // Use of this source code is governed by an ISC 3 | // license that can be found in the LICENSE file. 4 | 5 | package blockchain 6 | 7 | import ( 8 | "testing" 9 | 10 | "github.com/btcsuite/btcutil" 11 | ) 12 | 13 | // TestMerkle tests the BuildMerkleTreeStore API. 14 | func TestMerkle(t *testing.T) { 15 | block := btcutil.NewBlock(&Block100000) 16 | merkles := BuildMerkleTreeStore(block.Transactions(), false) 17 | calculatedMerkleRoot := merkles[len(merkles)-1] 18 | wantMerkle := &Block100000.Header.MerkleRoot 19 | if !wantMerkle.IsEqual(calculatedMerkleRoot) { 20 | t.Errorf("BuildMerkleTreeStore: merkle root mismatch - "+ 21 | "got %v, want %v", calculatedMerkleRoot, wantMerkle) 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/blockchain/testdata/277647.dat.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/btcsuite/btcd/blockchain/testdata/277647.dat.bz2 -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/blockchain/testdata/277647.utxostore.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/btcsuite/btcd/blockchain/testdata/277647.utxostore.bz2 -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/blockchain/testdata/blk_0_to_4.dat.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/btcsuite/btcd/blockchain/testdata/blk_0_to_4.dat.bz2 -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/blockchain/testdata/blk_3A.dat.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/btcsuite/btcd/blockchain/testdata/blk_3A.dat.bz2 -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/blockchain/testdata/blk_4A.dat.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/btcsuite/btcd/blockchain/testdata/blk_4A.dat.bz2 -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/blockchain/testdata/blk_5A.dat.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/btcsuite/btcd/blockchain/testdata/blk_5A.dat.bz2 -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/btcjson/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This is the list of people who have contributed code to the repository. 2 | # 3 | # Names should be added to this file only after verifying that the individual 4 | # or the individual's organization has agreed to the LICENSE. 5 | # 6 | # Names should be added to this file like so: 7 | # Name 8 | 9 | John C. Vernaleo 10 | Dave Collins 11 | Owain G. Ainsworth 12 | David Hill 13 | Josh Rickmar 14 | Andreas Metsälä 15 | Francis Lam 16 | Geert-Johan Riemer 17 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/btcjson/btcdextresults.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016-2017 The btcsuite developers 2 | // Copyright (c) 2015-2017 The Decred developers 3 | // Use of this source code is governed by an ISC 4 | // license that can be found in the LICENSE file. 5 | 6 | package btcjson 7 | 8 | // VersionResult models objects included in the version response. In the actual 9 | // result, these objects are keyed by the program or API name. 10 | // 11 | // NOTE: This is a btcsuite extension ported from 12 | // github.com/decred/dcrd/dcrjson. 13 | type VersionResult struct { 14 | VersionString string `json:"versionstring"` 15 | Major uint32 `json:"major"` 16 | Minor uint32 `json:"minor"` 17 | Patch uint32 `json:"patch"` 18 | Prerelease string `json:"prerelease"` 19 | BuildMetadata string `json:"buildmetadata"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/btcjson/chainsvrwsresults.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015-2017 The btcsuite developers 2 | // Copyright (c) 2015-2017 The Decred developers 3 | // Use of this source code is governed by an ISC 4 | // license that can be found in the LICENSE file. 5 | 6 | package btcjson 7 | 8 | // SessionResult models the data from the session command. 9 | type SessionResult struct { 10 | SessionID uint64 `json:"sessionid"` 11 | } 12 | 13 | // RescannedBlock contains the hash and all discovered transactions of a single 14 | // rescanned block. 15 | // 16 | // NOTE: This is a btcsuite extension ported from 17 | // github.com/decred/dcrd/dcrjson. 18 | type RescannedBlock struct { 19 | Hash string `json:"hash"` 20 | Transactions []string `json:"transactions"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/chaincfg/chainhash/doc.go: -------------------------------------------------------------------------------- 1 | // Package chainhash provides abstracted hash functionality. 2 | // 3 | // This package provides a generic hash type and associated functions that 4 | // allows the specific hash algorithm to be abstracted. 5 | package chainhash 6 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/connmgr/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 The btcsuite developers 2 | // Use of this source code is governed by an ISC 3 | // license that can be found in the LICENSE file. 4 | 5 | /* 6 | Package connmgr implements a generic Bitcoin network connection manager. 7 | 8 | Connection Manager Overview 9 | 10 | Connection Manager handles all the general connection concerns such as 11 | maintaining a set number of outbound connections, sourcing peers, banning, 12 | limiting max connections, tor lookup, etc. 13 | */ 14 | package connmgr 15 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/database/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015-2016 The btcsuite developers 2 | // Use of this source code is governed by an ISC 3 | // license that can be found in the LICENSE file. 4 | 5 | /* 6 | This test file is part of the database package rather than than the 7 | database_test package so it can bridge access to the internals to properly test 8 | cases which are either not possible or can't reliably be tested via the public 9 | interface. The functions, constants, and variables are only exported while the 10 | tests are being run. 11 | */ 12 | 13 | package database 14 | 15 | // TstNumErrorCodes makes the internal numErrorCodes parameter available to the 16 | // test package. 17 | const TstNumErrorCodes = numErrorCodes 18 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/database/testdata/blocks1-256.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/btcsuite/btcd/database/testdata/blocks1-256.bz2 -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/docs/default_ports.md: -------------------------------------------------------------------------------- 1 | While btcd is highly configurable when it comes to the network configuration, 2 | the following is intended to be a quick reference for the default ports used so 3 | port forwarding can be configured as required. 4 | 5 | btcd provides a `--upnp` flag which can be used to automatically map the bitcoin 6 | peer-to-peer listening port if your router supports UPnP. If your router does 7 | not support UPnP, or you don't wish to use it, please note that only the bitcoin 8 | peer-to-peer port should be forwarded unless you specifically want to allow RPC 9 | access to your btcd from external sources such as in more advanced network 10 | configurations. 11 | 12 | |Name|Port| 13 | |----|----| 14 | |Default Bitcoin peer-to-peer port|TCP 8333| 15 | |Default RPC port|TCP 8334| 16 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/integration/README.md: -------------------------------------------------------------------------------- 1 | integration 2 | =========== 3 | 4 | [![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd) 5 | [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) 6 | 7 | This contains integration tests which make use of the 8 | [rpctest](https://github.com/btcsuite/btcd/tree/master/integration/rpctest) 9 | package to programmatically drive nodes via RPC. 10 | 11 | ## License 12 | 13 | This code is licensed under the [copyfree](http://copyfree.org) ISC License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/integration/main.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016 The btcsuite developers 2 | // Use of this source code is governed by an ISC 3 | // license that can be found in the LICENSE file. 4 | 5 | package integration 6 | 7 | // This file only exists to prevent warnings due to no buildable source files 8 | // when the build tag for enabling the tests is not specified. 9 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/integration/rpctest/doc.go: -------------------------------------------------------------------------------- 1 | // Package rpctest provides a btcd-specific RPC testing harness crafting and 2 | // executing integration tests by driving a `btcd` instance via the `RPC` 3 | // interface. Each instance of an active harness comes equipped with a simple 4 | // in-memory HD wallet capable of properly syncing to the generated chain, 5 | // creating new addresses, and crafting fully signed transactions paying to an 6 | // arbitrary set of outputs. 7 | // 8 | // This package was designed specifically to act as an RPC testing harness for 9 | // `btcd`. However, the constructs presented are general enough to be adapted to 10 | // any project wishing to programmatically drive a `btcd` instance of its 11 | // systems/integration tests. 12 | package rpctest 13 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/limits/limits_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013-2014 The btcsuite developers 2 | // Use of this source code is governed by an ISC 3 | // license that can be found in the LICENSE file. 4 | 5 | package limits 6 | 7 | // SetLimits is a no-op on Plan 9 due to the lack of process accounting. 8 | func SetLimits() error { 9 | return nil 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/limits/limits_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013-2014 The btcsuite developers 2 | // Use of this source code is governed by an ISC 3 | // license that can be found in the LICENSE file. 4 | 5 | package limits 6 | 7 | // SetLimits is a no-op on Windows since it's not required there. 8 | func SetLimits() error { 9 | return nil 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/mining/README.md: -------------------------------------------------------------------------------- 1 | mining 2 | ====== 3 | 4 | [![Build Status](http://img.shields.io/travis/btcsuite/btcd.svg)](https://travis-ci.org/btcsuite/btcd) 5 | [![ISC License](http://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org) 6 | [![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/btcsuite/btcd/mining) 7 | 8 | ## Overview 9 | 10 | This package is currently a work in progress. 11 | 12 | ## Installation and Updating 13 | 14 | ```bash 15 | $ go get -u github.com/btcsuite/btcd/mining 16 | ``` 17 | 18 | ## License 19 | 20 | Package mining is licensed under the [copyfree](http://copyfree.org) ISC 21 | License. 22 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/netsync/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2017 The btcsuite developers 2 | // Use of this source code is governed by an ISC 3 | // license that can be found in the LICENSE file. 4 | 5 | /* 6 | Package netsync implements a concurrency safe block syncing protocol. The 7 | SyncManager communicates with connected peers to perform an initial block 8 | download, keep the chain and unconfirmed transaction pool in sync, and announce 9 | new blocks connected to the chain. Currently the sync manager selects a single 10 | sync peer that it downloads all blocks from until it is up to date with the 11 | longest chain the sync peer is aware of. 12 | */ 13 | package netsync 14 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/peer/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 The btcsuite developers 2 | // Use of this source code is governed by an ISC 3 | // license that can be found in the LICENSE file. 4 | 5 | /* 6 | This test file is part of the peer package rather than than the peer_test 7 | package so it can bridge access to the internals to properly test cases which 8 | are either not possible or can't reliably be tested via the public interface. 9 | The functions are only exported while the tests are being run. 10 | */ 11 | 12 | package peer 13 | 14 | // TstAllowSelfConns allows the test package to allow self connections by 15 | // disabling the detection logic. 16 | func TstAllowSelfConns() { 17 | allowSelfConns = true 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/release/notes.sample: -------------------------------------------------------------------------------- 1 | - Each release note is preceded by a dash 2 | - Each release note must not exceed 74 characters per line 3 | - Release notes that require a longer explanation than will fit on a 4 | single line should be wrapped with the text indented as in this line 5 | - No periods at the end of each release note 6 | - Other minor cleanup and bug fixes 7 | -------------------------------------------------------------------------------- /vendor/github.com/btcsuite/btcd/rpcclient/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This is the list of people who have contributed code to the repository. 2 | # 3 | # Names should be added to this file only after verifying that the individual 4 | # or the individual's organization has agreed to the LICENSE. 5 | # 6 | # Names should be added to this file like so: 7 | # Name 8 | 9 | Dave Collins 10 | Geert-Johan Riemer 11 | Josh Rickmar 12 | Michalis Kargakis 13 | Ruben de Vries 4 | 5 | Permission to use, copy, modify, and distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /vendor/github.com/davecgh/go-spew/cov_report.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This script uses gocov to generate a test coverage report. 4 | # The gocov tool my be obtained with the following command: 5 | # go get github.com/axw/gocov/gocov 6 | # 7 | # It will be installed to $GOPATH/bin, so ensure that location is in your $PATH. 8 | 9 | # Check for gocov. 10 | if ! type gocov >/dev/null 2>&1; then 11 | echo >&2 "This script requires the gocov tool." 12 | echo >&2 "You may obtain it with the following command:" 13 | echo >&2 "go get github.com/axw/gocov/gocov" 14 | exit 1 15 | fi 16 | 17 | # Only run the cgo tests if gcc is installed. 18 | if type gcc >/dev/null 2>&1; then 19 | (cd spew && gocov test -tags testcgo | gocov report) 20 | else 21 | (cd spew && gocov test | gocov report) 22 | fi 23 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/.dockerignore: -------------------------------------------------------------------------------- 1 | **/.git 2 | .git 3 | !.git/HEAD 4 | !.git/refs/heads 5 | **/*_test.go 6 | 7 | build/_workspace 8 | build/_bin 9 | tests/testdata 10 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Can I have feature X 2 | 3 | Before you do a feature request please check and make sure that it isn't possible 4 | through some other means. The JavaScript enabled console is a powerful feature 5 | in the right hands. Please check our [Bitchin' tricks](https://github.com/ethereum/go-ethereum/wiki/bitchin-tricks) wiki page for more info 6 | and help. 7 | 8 | ## Contributing 9 | 10 | If you'd like to contribute to go-ethereum please fork, fix, commit and 11 | send a pull request. Commits which do not comply with the coding standards 12 | are ignored (use gofmt!). 13 | 14 | See [Developers' Guide](https://github.com/ethereum/go-ethereum/wiki/Developers'-Guide) 15 | for more details on configuring your environment, testing, and 16 | dependency management. 17 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | Hi there, 2 | 3 | please note that this is an issue tracker reserved for bug reports and feature requests. 4 | 5 | For general questions please use the gitter channel or the Ethereum stack exchange at https://ethereum.stackexchange.com. 6 | 7 | #### System information 8 | 9 | Geth version: `geth version` 10 | OS & Version: Windows/Linux/OSX 11 | Commit hash : (if `develop`) 12 | 13 | #### Expected behaviour 14 | 15 | 16 | #### Actual behaviour 17 | 18 | 19 | #### Steps to reproduce the behaviour 20 | 21 | 22 | #### Backtrace 23 | 24 | ```` 25 | [backtrace] 26 | ```` 27 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "tests"] 2 | path = tests/testdata 3 | url = https://github.com/ethereum/tests 4 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/Dockerfile: -------------------------------------------------------------------------------- 1 | # Build Geth in a stock Go builder container 2 | FROM golang:1.9-alpine as builder 3 | 4 | RUN apk add --no-cache make gcc musl-dev linux-headers 5 | 6 | ADD . /go-ethereum 7 | RUN cd /go-ethereum && make geth 8 | 9 | # Pull Geth into a second stage deploy alpine container 10 | FROM alpine:latest 11 | 12 | RUN apk add --no-cache ca-certificates 13 | COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/ 14 | 15 | EXPOSE 8545 8546 30303 30303/udp 30304/udp 16 | ENTRYPOINT ["geth"] 17 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/VERSION: -------------------------------------------------------------------------------- 1 | 1.7.3 2 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/dupes/1: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/dupes/2: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/dupes/foo: -------------------------------------------------------------------------------- 1 | {"address":"7ef5a6135f1fd6a02593eedc869c6d41d934aef8","crypto":{"cipher":"aes-128-ctr","ciphertext":"1d0839166e7a15b9c1333fc865d69858b22df26815ccf601b28219b6192974e1","cipherparams":{"iv":"8df6caa7ff1b00c4e871f002cb7921ed"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"e5e6ef3f4ea695f496b643ebd3f75c0aa58ef4070e90c80c5d3fb0241bf1595c"},"mac":"6d16dfde774845e4585357f24bce530528bc69f4f84e1e22880d34fa45c273e5"},"id":"950077c7-71e3-4c44-a4a1-143919141ed4","version":3} -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/keystore/.hiddenfile: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} 2 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/keystore/UTC--2016-03-22T12-57-55.920751759Z--7ef5a6135f1fd6a02593eedc869c6d41d934aef8: -------------------------------------------------------------------------------- 1 | {"address":"7ef5a6135f1fd6a02593eedc869c6d41d934aef8","crypto":{"cipher":"aes-128-ctr","ciphertext":"1d0839166e7a15b9c1333fc865d69858b22df26815ccf601b28219b6192974e1","cipherparams":{"iv":"8df6caa7ff1b00c4e871f002cb7921ed"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"e5e6ef3f4ea695f496b643ebd3f75c0aa58ef4070e90c80c5d3fb0241bf1595c"},"mac":"6d16dfde774845e4585357f24bce530528bc69f4f84e1e22880d34fa45c273e5"},"id":"950077c7-71e3-4c44-a4a1-143919141ed4","version":3} -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/keystore/aaa: -------------------------------------------------------------------------------- 1 | {"address":"f466859ead1932d743d622cb74fc058882e8648a","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/keystore/empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/keystore/empty -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/keystore/foo/fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e: -------------------------------------------------------------------------------- 1 | {"address":"fd9bd350f08ee3c0c19b85a8e16114a11a60aa4e","crypto":{"cipher":"aes-128-ctr","ciphertext":"8124d5134aa4a927c79fd852989e4b5419397566f04b0936a1eb1d168c7c68a5","cipherparams":{"iv":"e2febe17176414dd2cda28287947eb2f"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":4096,"p":6,"r":8,"salt":"44b415ede89f3bdd6830390a21b78965f571b347a589d1d943029f016c5e8bd5"},"mac":"5e149ff25bfd9dd45746a84bb2bcd2f015f2cbca2b6d25c5de8c29617f71fe5b"},"id":"d6ac5452-2b2c-4d3c-ad80-4bf0327d971c","version":3} -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/keystore/garbage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/keystore/garbage -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/keystore/no-address: -------------------------------------------------------------------------------- 1 | {"crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/keystore/zero: -------------------------------------------------------------------------------- 1 | {"address":"0000000000000000000000000000000000000000","crypto":{"cipher":"aes-128-ctr","ciphertext":"cb664472deacb41a2e995fa7f96fe29ce744471deb8d146a0e43c7898c9ddd4d","cipherparams":{"iv":"dfd9ee70812add5f4b8f89d0811c9158"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"0d6769bf016d45c479213990d6a08d938469c4adad8a02ce507b4a4e7b7739f1"},"mac":"bac9af994b15a45dd39669fc66f9aa8a3b9dd8c22cb16e4d8d7ea089d0f1a1a9"},"id":"472e8b3d-afb6-45b5-8111-72c89895099a","version":3} -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/keystore/zzz: -------------------------------------------------------------------------------- 1 | {"address":"289d485d9771714cce91d3393d764e1311907acc","crypto":{"cipher":"aes-128-ctr","ciphertext":"faf32ca89d286b107f5e6d842802e05263c49b78d46eac74e6109e9a963378ab","cipherparams":{"iv":"558833eec4a665a8c55608d7d503407d"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":8,"p":16,"r":8,"salt":"d571fff447ffb24314f9513f5160246f09997b857ac71348b73e785aab40dc04"},"mac":"21edb85ff7d0dab1767b9bf498f2c3cb7be7609490756bd32300bb213b59effe"},"id":"3279afcf-55ba-43ff-8997-02dcc46a6525","version":3} -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/v1/cb61d5a9c4896fb9658090b597ef0e7be6f7b67e/cb61d5a9c4896fb9658090b597ef0e7be6f7b67e: -------------------------------------------------------------------------------- 1 | {"address":"cb61d5a9c4896fb9658090b597ef0e7be6f7b67e","Crypto":{"cipher":"aes-128-cbc","ciphertext":"6143d3192db8b66eabd693d9c4e414dcfaee52abda451af79ccf474dafb35f1bfc7ea013aa9d2ee35969a1a2e8d752d0","cipherparams":{"iv":"35337770fc2117994ecdcad026bccff4"},"kdf":"scrypt","kdfparams":{"n":262144,"r":8,"p":1,"dklen":32,"salt":"9afcddebca541253a2f4053391c673ff9fe23097cd8555d149d929e4ccf1257f"},"mac":"3f3d5af884b17a100b0b3232c0636c230a54dc2ac8d986227219b0dd89197644","version":"1"},"id":"e25f7c1f-d318-4f29-b62c-687190d4d299","version":"1"} -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/accounts/keystore/testdata/very-light-scrypt.json: -------------------------------------------------------------------------------- 1 | {"address":"45dea0fb0bba44f4fcf290bba71fd57d7117cbb8","crypto":{"cipher":"aes-128-ctr","ciphertext":"b87781948a1befd247bff51ef4063f716cf6c2d3481163e9a8f42e1f9bb74145","cipherparams":{"iv":"dc4926b48a105133d2f16b96833abf1e"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":2,"p":1,"r":8,"salt":"004244bbdc51cadda545b1cfa43cff9ed2ae88e08c61f1479dbb45410722f8f0"},"mac":"39990c1684557447940d4c69e06b1b82b2aceacb43f284df65c956daf3046b85"},"id":"ce541d8d-c79b-40f8-9f8c-20f59616faba","version":3} 2 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/build/deb.changelog: -------------------------------------------------------------------------------- 1 | {{.Name}} ({{.VersionString}}) {{.Distro}}; urgency=low 2 | 3 | * git build of {{.Env.Commit}} 4 | 5 | -- {{.Author}} {{.Time}} 6 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/build/deb.control: -------------------------------------------------------------------------------- 1 | Source: {{.Name}} 2 | Section: science 3 | Priority: extra 4 | Maintainer: {{.Author}} 5 | Build-Depends: debhelper (>= 8.0.0), golang-1.9 6 | Standards-Version: 3.9.5 7 | Homepage: https://ethereum.org 8 | Vcs-Git: git://github.com/ethereum/go-ethereum.git 9 | Vcs-Browser: https://github.com/ethereum/go-ethereum 10 | 11 | Package: {{.Name}} 12 | Architecture: any 13 | Depends: ${misc:Depends}, {{.ExeList}} 14 | Description: Meta-package to install geth and other tools 15 | Meta-package to install geth and other tools 16 | 17 | {{range .Executables}} 18 | Package: {{$.ExeName .}} 19 | Conflicts: {{$.ExeConflicts .}} 20 | Architecture: any 21 | Depends: ${shlibs:Depends}, ${misc:Depends} 22 | Built-Using: ${misc:Built-Using} 23 | Description: {{.Description}} 24 | {{.Description}} 25 | {{end}} 26 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/build/deb.copyright: -------------------------------------------------------------------------------- 1 | Copyright 2016 The go-ethereum Authors 2 | 3 | go-ethereum is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU General Public License as published by 5 | the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | go-ethereum is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with go-ethereum. If not, see . 15 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/build/deb.docs: -------------------------------------------------------------------------------- 1 | AUTHORS 2 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/build/deb.install: -------------------------------------------------------------------------------- 1 | build/bin/{{.Name}} usr/bin 2 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/build/deb.rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # -*- makefile -*- 3 | 4 | # Uncomment this to turn on verbose mode. 5 | #export DH_VERBOSE=1 6 | 7 | override_dh_auto_build: 8 | build/env.sh /usr/lib/go-1.9/bin/go run build/ci.go install -git-commit={{.Env.Commit}} -git-branch={{.Env.Branch}} -git-tag={{.Env.Tag}} -buildnum={{.Env.Buildnum}} -pull-request={{.Env.IsPullRequest}} 9 | 10 | override_dh_auto_test: 11 | 12 | %: 13 | dh $@ 14 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/build/env.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ ! -f "build/env.sh" ]; then 6 | echo "$0 must be run from the root of the repository." 7 | exit 2 8 | fi 9 | 10 | # Create fake Go workspace if it doesn't exist yet. 11 | workspace="$PWD/build/_workspace" 12 | root="$PWD" 13 | ethdir="$workspace/src/github.com/ethereum" 14 | if [ ! -L "$ethdir/go-ethereum" ]; then 15 | mkdir -p "$ethdir" 16 | cd "$ethdir" 17 | ln -s ../../../../../. go-ethereum 18 | cd "$root" 19 | fi 20 | 21 | # Set up the environment to use the workspace. 22 | GOPATH="$workspace" 23 | export GOPATH 24 | 25 | # Run the command inside the workspace. 26 | cd "$ethdir/go-ethereum" 27 | PWD="$ethdir/go-ethereum" 28 | 29 | # Launch the arguments with the configured environment. 30 | exec "$@" 31 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/build/nsis.simplefc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/ethereum/go-ethereum/build/nsis.simplefc.dll -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/build/nsis.simplefc.source.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/ethereum/go-ethereum/build/nsis.simplefc.source.zip -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/cmd/geth/testdata/empty.js: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/cmd/geth/testdata/guswallet.json: -------------------------------------------------------------------------------- 1 | { 2 | "encseed": "26d87f5f2bf9835f9a47eefae571bc09f9107bb13d54ff12a4ec095d01f83897494cf34f7bed2ed34126ecba9db7b62de56c9d7cd136520a0427bfb11b8954ba7ac39b90d4650d3448e31185affcd74226a68f1e94b1108e6e0a4a91cdd83eba", 3 | "ethaddr": "d4584b5f6229b7be90727b0fc8c6b91bb427821f", 4 | "email": "gustav.simonsson@gmail.com", 5 | "btcaddr": "1EVknXyFC68kKNLkh6YnKzW41svSRoaAcx" 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/cmd/geth/testdata/passwords.txt: -------------------------------------------------------------------------------- 1 | foobar 2 | foobar 3 | foobar 4 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/cmd/geth/testdata/wrong-passwords.txt: -------------------------------------------------------------------------------- 1 | wrong 2 | wrong 3 | wrong 4 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/console/testdata/exec.js: -------------------------------------------------------------------------------- 1 | var execed = "some-executed-string"; 2 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/console/testdata/preload.js: -------------------------------------------------------------------------------- 1 | var preloaded = "some-preloaded-string"; 2 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/containers/docker/develop-alpine/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.5 2 | 3 | RUN \ 4 | apk add --update go git make gcc musl-dev linux-headers ca-certificates && \ 5 | git clone --depth 1 https://github.com/ethereum/go-ethereum && \ 6 | (cd go-ethereum && make geth) && \ 7 | cp go-ethereum/build/bin/geth /geth && \ 8 | apk del go git make gcc musl-dev linux-headers && \ 9 | rm -rf /go-ethereum && rm -rf /var/cache/apk/* 10 | 11 | EXPOSE 8545 12 | EXPOSE 30303 13 | 14 | ENTRYPOINT ["/geth"] 15 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/containers/docker/develop-ubuntu/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:xenial 2 | 3 | RUN \ 4 | apt-get update && apt-get upgrade -q -y && \ 5 | apt-get install -y --no-install-recommends golang git make gcc libc-dev ca-certificates && \ 6 | git clone --depth 1 https://github.com/ethereum/go-ethereum && \ 7 | (cd go-ethereum && make geth) && \ 8 | cp go-ethereum/build/bin/geth /geth && \ 9 | apt-get remove -y golang git make gcc libc-dev && apt autoremove -y && apt-get clean && \ 10 | rm -rf /go-ethereum 11 | 12 | EXPOSE 8545 13 | EXPOSE 30303 14 | 15 | ENTRYPOINT ["/geth"] 16 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/containers/docker/master-alpine/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.5 2 | 3 | RUN \ 4 | apk add --update go git make gcc musl-dev linux-headers ca-certificates && \ 5 | git clone --depth 1 --branch release/1.7 https://github.com/ethereum/go-ethereum && \ 6 | (cd go-ethereum && make geth) && \ 7 | cp go-ethereum/build/bin/geth /geth && \ 8 | apk del go git make gcc musl-dev linux-headers && \ 9 | rm -rf /go-ethereum && rm -rf /var/cache/apk/* 10 | 11 | EXPOSE 8545 12 | EXPOSE 30303 13 | 14 | ENTRYPOINT ["/geth"] 15 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/containers/docker/master-ubuntu/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:xenial 2 | 3 | RUN \ 4 | apt-get update && apt-get upgrade -q -y && \ 5 | apt-get install -y --no-install-recommends golang git make gcc libc-dev ca-certificates && \ 6 | git clone --depth 1 --branch release/1.7 https://github.com/ethereum/go-ethereum && \ 7 | (cd go-ethereum && make geth) && \ 8 | cp go-ethereum/build/bin/geth /geth && \ 9 | apt-get remove -y golang git make gcc libc-dev && apt autoremove -y && apt-get clean && \ 10 | rm -rf /go-ethereum 11 | 12 | EXPOSE 8545 13 | EXPOSE 30303 14 | 15 | ENTRYPOINT ["/geth"] 16 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/containers/vagrant/.gitignore: -------------------------------------------------------------------------------- 1 | .vagrant 2 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/containers/vagrant/provisioners/shell/centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sudo yum install -y git wget 4 | sudo yum update -y 5 | 6 | wget --continue https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz 7 | sudo tar -C /usr/local -xzf go1.8.1.linux-amd64.tar.gz 8 | 9 | GETH_PATH="~vagrant/go/src/github.com/ethereum/go-ethereum/build/bin/" 10 | 11 | echo "export PATH=$PATH:/usr/local/go/bin:$GETH_PATH" >> ~vagrant/.bashrc 12 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/containers/vagrant/provisioners/shell/debian.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sudo apt-get install -y build-essential git-all wget 4 | sudo apt-get update 5 | 6 | wget --continue https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz 7 | sudo tar -C /usr/local -xzf go1.8.1.linux-amd64.tar.gz 8 | 9 | GETH_PATH="~vagrant/go/src/github.com/ethereum/go-ethereum/build/bin/" 10 | 11 | echo "export PATH=$PATH:/usr/local/go/bin:$GETH_PATH" >> ~vagrant/.bashrc 12 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/containers/vagrant/provisioners/shell/ubuntu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sudo apt-get install -y build-essential git-all wget 4 | sudo apt-get update 5 | 6 | wget --continue https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz 7 | sudo tar -C /usr/local -xzf go1.8.1.linux-amd64.tar.gz 8 | 9 | GETH_PATH="~vagrant/go/src/github.com/ethereum/go-ethereum/build/bin/" 10 | 11 | echo "export PATH=$PATH:/usr/local/go/bin:$GETH_PATH" >> ~vagrant/.bashrc 12 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/core/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | # 3 | # If you find yourself ignoring temporary files generated by your text editor 4 | # or operating system, you probably want to add a global ignore instead: 5 | # git config --global core.excludesfile ~/.gitignore_global 6 | 7 | /tmp 8 | */**/*un~ 9 | *un~ 10 | .DS_Store 11 | */**/.DS_Store 12 | 13 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/ecies/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | *~ 25 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | *~ 25 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/TODO: -------------------------------------------------------------------------------- 1 | * Unit tests for fieldelem/groupelem, including ones intended to 2 | trigger fieldelem's boundary cases. 3 | * Complete constant-time operations for signing/keygen 4 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | autoreconf -if --warnings=all 4 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/libsecp256k1.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: libsecp256k1 7 | Description: Optimized C library for EC operations on curve secp256k1 8 | URL: https://github.com/bitcoin-core/secp256k1 9 | Version: @PACKAGE_VERSION@ 10 | Cflags: -I${includedir} 11 | Libs.private: @SECP_LIBS@ 12 | Libs: -L${libdir} -lsecp256k1 13 | 14 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/obj/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/obj/.gitignore -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/ecmult_const.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2015 Andrew Poelstra * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_ECMULT_CONST_ 8 | #define _SECP256K1_ECMULT_CONST_ 9 | 10 | #include "scalar.h" 11 | #include "group.h" 12 | 13 | static void secp256k1_ecmult_const(secp256k1_gej *r, const secp256k1_ge *a, const secp256k1_scalar *q); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/java/org_bitcoin_Secp256k1Context.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "org_bitcoin_Secp256k1Context.h" 4 | #include "include/secp256k1.h" 5 | 6 | SECP256K1_API jlong JNICALL Java_org_bitcoin_Secp256k1Context_secp256k1_1init_1context 7 | (JNIEnv* env, jclass classObject) 8 | { 9 | secp256k1_context *ctx = secp256k1_context_create(SECP256K1_CONTEXT_SIGN | SECP256K1_CONTEXT_VERIFY); 10 | 11 | (void)classObject;(void)env; 12 | 13 | return (uintptr_t)ctx; 14 | } 15 | 16 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/java/org_bitcoin_Secp256k1Context.h: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT THIS FILE - it is machine generated */ 2 | #include 3 | #include "include/secp256k1.h" 4 | /* Header for class org_bitcoin_Secp256k1Context */ 5 | 6 | #ifndef _Included_org_bitcoin_Secp256k1Context 7 | #define _Included_org_bitcoin_Secp256k1Context 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif 11 | /* 12 | * Class: org_bitcoin_Secp256k1Context 13 | * Method: secp256k1_init_context 14 | * Signature: ()J 15 | */ 16 | SECP256K1_API jlong JNICALL Java_org_bitcoin_Secp256k1Context_secp256k1_1init_1context 17 | (JNIEnv *, jclass); 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/modules/ecdh/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_ecdh.h 2 | noinst_HEADERS += src/modules/ecdh/main_impl.h 3 | noinst_HEADERS += src/modules/ecdh/tests_impl.h 4 | if USE_BENCHMARK 5 | noinst_PROGRAMS += bench_ecdh 6 | bench_ecdh_SOURCES = src/bench_ecdh.c 7 | bench_ecdh_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB) 8 | endif 9 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/modules/recovery/Makefile.am.include: -------------------------------------------------------------------------------- 1 | include_HEADERS += include/secp256k1_recovery.h 2 | noinst_HEADERS += src/modules/recovery/main_impl.h 3 | noinst_HEADERS += src/modules/recovery/tests_impl.h 4 | if USE_BENCHMARK 5 | noinst_PROGRAMS += bench_recover 6 | bench_recover_SOURCES = src/bench_recover.c 7 | bench_recover_LDADD = libsecp256k1.la $(SECP_LIBS) $(COMMON_LIB) 8 | endif 9 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/num_gmp.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_NUM_REPR_ 8 | #define _SECP256K1_NUM_REPR_ 9 | 10 | #include 11 | 12 | #define NUM_LIMBS ((256+GMP_NUMB_BITS-1)/GMP_NUMB_BITS) 13 | 14 | typedef struct { 15 | mp_limb_t data[2*NUM_LIMBS]; 16 | int neg; 17 | int limbs; 18 | } secp256k1_num; 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/num_impl.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2013, 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_NUM_IMPL_H_ 8 | #define _SECP256K1_NUM_IMPL_H_ 9 | 10 | #if defined HAVE_CONFIG_H 11 | #include "libsecp256k1-config.h" 12 | #endif 13 | 14 | #include "num.h" 15 | 16 | #if defined(USE_NUM_GMP) 17 | #include "num_gmp_impl.h" 18 | #elif defined(USE_NUM_NONE) 19 | /* Nothing. */ 20 | #else 21 | #error "Please select num implementation" 22 | #endif 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/scalar_8x32.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2014 Pieter Wuille * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_SCALAR_REPR_ 8 | #define _SECP256K1_SCALAR_REPR_ 9 | 10 | #include 11 | 12 | /** A scalar modulo the group order of the secp256k1 curve. */ 13 | typedef struct { 14 | uint32_t d[8]; 15 | } secp256k1_scalar; 16 | 17 | #define SECP256K1_SCALAR_CONST(d7, d6, d5, d4, d3, d2, d1, d0) {{(d0), (d1), (d2), (d3), (d4), (d5), (d6), (d7)}} 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/scalar_low.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | * Copyright (c) 2015 Andrew Poelstra * 3 | * Distributed under the MIT software license, see the accompanying * 4 | * file COPYING or http://www.opensource.org/licenses/mit-license.php.* 5 | **********************************************************************/ 6 | 7 | #ifndef _SECP256K1_SCALAR_REPR_ 8 | #define _SECP256K1_SCALAR_REPR_ 9 | 10 | #include 11 | 12 | /** A scalar modulo the group order of the secp256k1 curve. */ 13 | typedef uint32_t secp256k1_scalar; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/sha3/keccakf_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,!appengine,!gccgo 6 | 7 | package sha3 8 | 9 | // This function is implemented in keccakf_amd64.s. 10 | 11 | //go:noescape 12 | 13 | func keccakF1600(state *[25]uint64) 14 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/sha3/register.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.4 6 | 7 | package sha3 8 | 9 | import ( 10 | "crypto" 11 | ) 12 | 13 | func init() { 14 | crypto.RegisterHash(crypto.SHA3_224, New224) 15 | crypto.RegisterHash(crypto.SHA3_256, New256) 16 | crypto.RegisterHash(crypto.SHA3_384, New384) 17 | crypto.RegisterHash(crypto.SHA3_512, New512) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/sha3/testdata/keccakKats.json.deflate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/ethereum/go-ethereum/crypto/sha3/testdata/keccakKats.json.deflate -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/crypto/sha3/xor.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !amd64,!386,!ppc64le appengine 6 | 7 | package sha3 8 | 9 | var ( 10 | xorIn = xorInGeneric 11 | copyOut = copyOutGeneric 12 | xorInUnaligned = xorInGeneric 13 | copyOutUnaligned = copyOutGeneric 14 | ) 15 | 16 | const xorImplementationUnaligned = "generic" 17 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/ethdb/.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | # 3 | # If you find yourself ignoring temporary files generated by your text editor 4 | # or operating system, you probably want to add a global ignore instead: 5 | # git config --global core.excludesfile ~/.gitignore_global 6 | 7 | /tmp 8 | */**/*un~ 9 | *un~ 10 | .DS_Store 11 | */**/.DS_Store 12 | 13 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Contributors to log15: 2 | 3 | - Aaron L 4 | - Alan Shreve 5 | - Chris Hines 6 | - Ciaran Downey 7 | - Dmitry Chestnykh 8 | - Evan Shaw 9 | - Péter Szilágyi 10 | - Trevor Gattis 11 | - Vincent Vanackere 12 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2014 Alan Shreve 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/README_ETHEREUM.md: -------------------------------------------------------------------------------- 1 | This package is a fork of https://github.com/inconshreveable/log15, with some 2 | minor modifications required by the go-ethereum codebase: 3 | 4 | * Support for log level `trace` 5 | * Modified behavior to exit on `critical` failure 6 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/handler_go13.go: -------------------------------------------------------------------------------- 1 | // +build !go1.4 2 | 3 | package log 4 | 5 | import ( 6 | "sync/atomic" 7 | "unsafe" 8 | ) 9 | 10 | // swapHandler wraps another handler that may be swapped out 11 | // dynamically at runtime in a thread-safe fashion. 12 | type swapHandler struct { 13 | handler unsafe.Pointer 14 | } 15 | 16 | func (h *swapHandler) Log(r *Record) error { 17 | return h.Get().Log(r) 18 | } 19 | 20 | func (h *swapHandler) Get() Handler { 21 | return *(*Handler)(atomic.LoadPointer(&h.handler)) 22 | } 23 | 24 | func (h *swapHandler) Swap(newHandler Handler) { 25 | atomic.StorePointer(&h.handler, unsafe.Pointer(&newHandler)) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/handler_go14.go: -------------------------------------------------------------------------------- 1 | // +build go1.4 2 | 3 | package log 4 | 5 | import "sync/atomic" 6 | 7 | // swapHandler wraps another handler that may be swapped out 8 | // dynamically at runtime in a thread-safe fashion. 9 | type swapHandler struct { 10 | handler atomic.Value 11 | } 12 | 13 | func (h *swapHandler) Log(r *Record) error { 14 | return (*h.handler.Load().(*Handler)).Log(r) 15 | } 16 | 17 | func (h *swapHandler) Swap(newHandler Handler) { 18 | h.handler.Store(&newHandler) 19 | } 20 | 21 | func (h *swapHandler) Get() Handler { 22 | return *h.handler.Load().(*Handler) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/term/terminal_appengine.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build appengine 7 | 8 | package term 9 | 10 | // IsTty always returns false on AppEngine. 11 | func IsTty(fd uintptr) bool { 12 | return false 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/term/terminal_darwin.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | // +build !appengine 6 | 7 | package term 8 | 9 | import "syscall" 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | type Termios syscall.Termios 14 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/term/terminal_freebsd.go: -------------------------------------------------------------------------------- 1 | package term 2 | 3 | import ( 4 | "syscall" 5 | ) 6 | 7 | const ioctlReadTermios = syscall.TIOCGETA 8 | 9 | // Go 1.2 doesn't include Termios for FreeBSD. This should be added in 1.3 and this could be merged with terminal_darwin. 10 | type Termios struct { 11 | Iflag uint32 12 | Oflag uint32 13 | Cflag uint32 14 | Lflag uint32 15 | Cc [20]uint8 16 | Ispeed uint32 17 | Ospeed uint32 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/term/terminal_linux.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2013 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build !appengine 7 | 8 | package term 9 | 10 | import "syscall" 11 | 12 | const ioctlReadTermios = syscall.TCGETS 13 | 14 | type Termios syscall.Termios 15 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/term/terminal_netbsd.go: -------------------------------------------------------------------------------- 1 | package term 2 | 3 | import "syscall" 4 | 5 | const ioctlReadTermios = syscall.TIOCGETA 6 | 7 | type Termios syscall.Termios 8 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/term/terminal_notwindows.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2011 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build linux,!appengine darwin freebsd openbsd netbsd 7 | 8 | package term 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | // IsTty returns true if the given file descriptor is a terminal. 16 | func IsTty(fd uintptr) bool { 17 | var termios Termios 18 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 19 | return err == 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/term/terminal_openbsd.go: -------------------------------------------------------------------------------- 1 | package term 2 | 3 | import "syscall" 4 | 5 | const ioctlReadTermios = syscall.TIOCGETA 6 | 7 | type Termios syscall.Termios 8 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/term/terminal_solaris.go: -------------------------------------------------------------------------------- 1 | package term 2 | 3 | import "golang.org/x/sys/unix" 4 | 5 | // IsTty returns true if the given file descriptor is a terminal. 6 | func IsTty(fd uintptr) bool { 7 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETA) 8 | return err == nil 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/log/term/terminal_windows.go: -------------------------------------------------------------------------------- 1 | // Based on ssh/terminal: 2 | // Copyright 2011 The Go Authors. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build windows 7 | 8 | package term 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | var kernel32 = syscall.NewLazyDLL("kernel32.dll") 16 | 17 | var ( 18 | procGetConsoleMode = kernel32.NewProc("GetConsoleMode") 19 | ) 20 | 21 | // IsTty returns true if the given file descriptor is a terminal. 22 | func IsTty(fd uintptr) bool { 23 | var st uint32 24 | r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, fd, uintptr(unsafe.Pointer(&st)), 0) 25 | return r != 0 && e == 0 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/swarm/api/testdata/test0/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/getamis/eth-event-listener/5485e5554c93003a7b822836990f37cf8c3d5b4d/vendor/github.com/ethereum/go-ethereum/swarm/api/testdata/test0/img/logo.png -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/swarm/api/testdata/test0/index.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: black; 3 | font-size: 12px; 4 | background-color: orange; 5 | border: 4px solid black; 6 | } 7 | body { 8 | background-color: orange 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/swarm/api/testdata/test0/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Swarm Test

8 | Ethereum logo 9 | 10 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/swarm/dev/.dockerignore: -------------------------------------------------------------------------------- 1 | bin/* 2 | cluster/* 3 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/swarm/dev/.gitignore: -------------------------------------------------------------------------------- 1 | bin/* 2 | cluster/* 3 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/swarm/dev/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: build cluster test 2 | 3 | default: build 4 | 5 | build: 6 | go build -o bin/swarm github.com/ethereum/go-ethereum/cmd/swarm 7 | go build -o bin/geth github.com/ethereum/go-ethereum/cmd/geth 8 | go build -o bin/bootnode github.com/ethereum/go-ethereum/cmd/bootnode 9 | 10 | cluster: build 11 | scripts/boot-cluster.sh 12 | 13 | test: 14 | go test -v github.com/ethereum/go-ethereum/swarm/... 15 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/swarm/dev/README.md: -------------------------------------------------------------------------------- 1 | Swarm development environment 2 | ============================= 3 | 4 | The Swarm development environment is a Linux bash shell which can be run in a 5 | Docker container and provides a predictable build and test environment. 6 | 7 | ### Start the Docker container 8 | 9 | Run the `run.sh` script to build the Docker image and run it, you will then be 10 | at a bash prompt inside the `swarm/dev` directory. 11 | 12 | ### Build binaries 13 | 14 | Run `make` to build the `swarm`, `geth` and `bootnode` binaries into the 15 | `swarm/dev/bin` directory. 16 | 17 | ### Boot a cluster 18 | 19 | Run `make cluster` to start a 3 node Swarm cluster, or run 20 | `scripts/boot-cluster.sh --size N` to boot a cluster of size N. 21 | -------------------------------------------------------------------------------- /vendor/github.com/ethereum/go-ethereum/swarm/dev/bashrc: -------------------------------------------------------------------------------- 1 | export ROOT="${GOPATH}/src/github.com/ethereum/go-ethereum" 2 | export PATH="${ROOT}/swarm/dev/bin:${PATH}" 3 | 4 | cd "${ROOT}/swarm/dev" 5 | 6 | cat <", 13 | Usage: []string{ 14 | "Print usage information. If a command is passed in, print usage information just for that command.", 15 | }, 16 | Command: printHelp, 17 | } 18 | } 19 | 20 | func printHelp(args []string, additionalArgs []string) { 21 | if len(args) == 0 { 22 | usage() 23 | } else { 24 | command, found := commandMatching(args[0]) 25 | if !found { 26 | complainAndQuit(fmt.Sprintf("Unknown command: %s", args[0])) 27 | } 28 | 29 | usageForCommand(command, true) 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/interrupthandler/sigquit_swallower_unix.go: -------------------------------------------------------------------------------- 1 | // +build freebsd openbsd netbsd dragonfly darwin linux solaris 2 | 3 | package interrupthandler 4 | 5 | import ( 6 | "os" 7 | "os/signal" 8 | "syscall" 9 | ) 10 | 11 | func SwallowSigQuit() { 12 | c := make(chan os.Signal, 1024) 13 | signal.Notify(c, syscall.SIGQUIT) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/interrupthandler/sigquit_swallower_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package interrupthandler 4 | 5 | func SwallowSigQuit() { 6 | //noop 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/testrunner/run_result.go: -------------------------------------------------------------------------------- 1 | package testrunner 2 | 3 | type RunResult struct { 4 | Passed bool 5 | HasProgrammaticFocus bool 6 | } 7 | 8 | func PassingRunResult() RunResult { 9 | return RunResult{ 10 | Passed: true, 11 | HasProgrammaticFocus: false, 12 | } 13 | } 14 | 15 | func FailingRunResult() RunResult { 16 | return RunResult{ 17 | Passed: false, 18 | HasProgrammaticFocus: false, 19 | } 20 | } 21 | 22 | func (r RunResult) Merge(o RunResult) RunResult { 23 | return RunResult{ 24 | Passed: r.Passed && o.Passed, 25 | HasProgrammaticFocus: r.HasProgrammaticFocus || o.HasProgrammaticFocus, 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/testsuite/testsuite_suite_test.go: -------------------------------------------------------------------------------- 1 | package testsuite_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestTestsuite(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Testsuite Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/testsuite/vendor_check_go15.go: -------------------------------------------------------------------------------- 1 | // +build !go1.6 2 | 3 | package testsuite 4 | 5 | import ( 6 | "os" 7 | "path" 8 | ) 9 | 10 | // "This change will only be enabled if the go command is run with 11 | // GO15VENDOREXPERIMENT=1 in its environment." 12 | // c.f. the vendor-experiment proposal https://goo.gl/2ucMeC 13 | func vendorExperimentCheck(dir string) bool { 14 | vendorExperiment := os.Getenv("GO15VENDOREXPERIMENT") 15 | return vendorExperiment == "1" && path.Base(dir) == "vendor" 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/testsuite/vendor_check_go16.go: -------------------------------------------------------------------------------- 1 | // +build go1.6 2 | 3 | package testsuite 4 | 5 | import ( 6 | "os" 7 | "path" 8 | ) 9 | 10 | // in 1.6 the vendor directory became the default go behaviour, so now 11 | // check if its disabled. 12 | func vendorExperimentCheck(dir string) bool { 13 | vendorExperiment := os.Getenv("GO15VENDOREXPERIMENT") 14 | return vendorExperiment != "0" && path.Base(dir) == "vendor" 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/version_command.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "flag" 5 | "fmt" 6 | "github.com/onsi/ginkgo/config" 7 | ) 8 | 9 | func BuildVersionCommand() *Command { 10 | return &Command{ 11 | Name: "version", 12 | FlagSet: flag.NewFlagSet("version", flag.ExitOnError), 13 | UsageCommand: "ginkgo version", 14 | Usage: []string{ 15 | "Print Ginkgo's version", 16 | }, 17 | Command: printVersion, 18 | } 19 | } 20 | 21 | func printVersion([]string, []string) { 22 | fmt.Printf("Ginkgo Version %s\n", config.VERSION) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/ginkgo/watch/delta.go: -------------------------------------------------------------------------------- 1 | package watch 2 | 3 | import "sort" 4 | 5 | type Delta struct { 6 | ModifiedPackages []string 7 | 8 | NewSuites []*Suite 9 | RemovedSuites []*Suite 10 | modifiedSuites []*Suite 11 | } 12 | 13 | type DescendingByDelta []*Suite 14 | 15 | func (a DescendingByDelta) Len() int { return len(a) } 16 | func (a DescendingByDelta) Swap(i, j int) { a[i], a[j] = a[j], a[i] } 17 | func (a DescendingByDelta) Less(i, j int) bool { return a[i].Delta() > a[j].Delta() } 18 | 19 | func (d Delta) ModifiedSuites() []*Suite { 20 | sort.Sort(DescendingByDelta(d.modifiedSuites)) 21 | return d.modifiedSuites 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/convert_fixtures/extra_functions_test.go: -------------------------------------------------------------------------------- 1 | package tmp 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | func TestSomethingLessImportant(t *testing.T) { 8 | strp := "hello!" 9 | somethingImportant(t, &strp) 10 | } 11 | 12 | func somethingImportant(t *testing.T, message *string) { 13 | t.Log("Something important happened in a test: " + *message) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/convert_fixtures/nested/nested_test.go: -------------------------------------------------------------------------------- 1 | package nested 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | func TestSomethingLessImportant(t *testing.T) { 8 | whatever := &UselessStruct{} 9 | t.Fail(whatever.ImportantField != "SECRET_PASSWORD") 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/convert_fixtures/nested_without_gofiles/subpackage/nested_subpackage_test.go: -------------------------------------------------------------------------------- 1 | package subpackage 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | func TestNestedSubPackages(t *testing.T) { 8 | t.Fail(true) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/convert_fixtures/outside_package_test.go: -------------------------------------------------------------------------------- 1 | package tmp_test 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | type UselessStruct struct { 8 | ImportantField string 9 | } 10 | 11 | func TestSomethingImportant(t *testing.T) { 12 | whatever := &UselessStruct{} 13 | if whatever.ImportantField != "SECRET_PASSWORD" { 14 | t.Fail() 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/convert_goldmasters/extra_functions_test.go: -------------------------------------------------------------------------------- 1 | package tmp 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | ) 6 | 7 | var _ = Describe("Testing with Ginkgo", func() { 8 | It("something less important", func() { 9 | 10 | strp := "hello!" 11 | somethingImportant(GinkgoT(), &strp) 12 | }) 13 | }) 14 | 15 | func somethingImportant(t GinkgoTInterface, message *string) { 16 | t.Log("Something important happened in a test: " + *message) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/convert_goldmasters/fixtures_suite_test.go: -------------------------------------------------------------------------------- 1 | package tmp 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestTmp(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Tmp Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/convert_goldmasters/nested_subpackage_test.go: -------------------------------------------------------------------------------- 1 | package subpackage 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | ) 6 | 7 | var _ = Describe("Testing with Ginkgo", func() { 8 | It("nested sub packages", func() { 9 | GinkgoT().Fail(true) 10 | }) 11 | }) 12 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/convert_goldmasters/nested_suite_test.go: -------------------------------------------------------------------------------- 1 | package nested_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestNested(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Nested Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/convert_goldmasters/nested_test.go: -------------------------------------------------------------------------------- 1 | package nested 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | ) 6 | 7 | var _ = Describe("Testing with Ginkgo", func() { 8 | It("something less important", func() { 9 | 10 | whatever := &UselessStruct{} 11 | GinkgoT().Fail(whatever.ImportantField != "SECRET_PASSWORD") 12 | }) 13 | }) 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/convert_goldmasters/outside_package_test.go: -------------------------------------------------------------------------------- 1 | package tmp_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | ) 6 | 7 | var _ = Describe("Testing with Ginkgo", func() { 8 | It("something important", func() { 9 | 10 | whatever := &UselessStruct{} 11 | if whatever.ImportantField != "SECRET_PASSWORD" { 12 | GinkgoT().Fail() 13 | } 14 | }) 15 | }) 16 | 17 | type UselessStruct struct { 18 | ImportantField string 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/convert_goldmasters/suite_test.go: -------------------------------------------------------------------------------- 1 | package tmp_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestConvertFixtures(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "ConvertFixtures Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/coverage_fixture/coverage.go: -------------------------------------------------------------------------------- 1 | package coverage_fixture 2 | 3 | func A() string { 4 | return "A" 5 | } 6 | 7 | func B() string { 8 | return "B" 9 | } 10 | 11 | func C() string { 12 | return "C" 13 | } 14 | 15 | func D() string { 16 | return "D" 17 | } 18 | 19 | func E() string { 20 | return "untested" 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/coverage_fixture/coverage_fixture_suite_test.go: -------------------------------------------------------------------------------- 1 | package coverage_fixture_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestCoverageFixture(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CoverageFixture Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/coverage_fixture/external_coverage_fixture/external_coverage.go: -------------------------------------------------------------------------------- 1 | package external_coverage 2 | 3 | func Tested() string { 4 | return "tested" 5 | } 6 | 7 | func Untested() string { 8 | return "untested" 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/does_not_compile/does_not_compile_suite_test.go: -------------------------------------------------------------------------------- 1 | package does_not_compile_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestDoes_not_compile(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Does_not_compile Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/does_not_compile/does_not_compile_test.go: -------------------------------------------------------------------------------- 1 | package does_not_compile_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/ginkgo/integration/_fixtures/does_not_compile" 6 | . "github.com/onsi/gomega" 7 | ) 8 | 9 | var _ = Describe("DoesNotCompile", func() { 10 | 11 | }) 12 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/eventually_failing/eventually_failing_suite_test.go: -------------------------------------------------------------------------------- 1 | package eventually_failing_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestEventuallyFailing(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "EventuallyFailing Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/eventually_failing/eventually_failing_test.go: -------------------------------------------------------------------------------- 1 | package eventually_failing_test 2 | 3 | import ( 4 | "fmt" 5 | "io/ioutil" 6 | "strings" 7 | "time" 8 | 9 | . "github.com/onsi/ginkgo" 10 | . "github.com/onsi/gomega" 11 | ) 12 | 13 | var _ = Describe("EventuallyFailing", func() { 14 | It("should fail on the third try", func() { 15 | time.Sleep(time.Second) 16 | files, err := ioutil.ReadDir(".") 17 | Ω(err).ShouldNot(HaveOccurred()) 18 | 19 | numRuns := 1 20 | for _, file := range files { 21 | if strings.HasPrefix(file.Name(), "counter") { 22 | numRuns++ 23 | } 24 | } 25 | 26 | Ω(numRuns).Should(BeNumerically("<", 3)) 27 | ioutil.WriteFile(fmt.Sprintf("./counter-%d", numRuns), []byte("foo"), 0777) 28 | }) 29 | }) 30 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/fail_fixture/fail_fixture_suite_test.go: -------------------------------------------------------------------------------- 1 | package fail_fixture_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestFail_fixture(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Fail_fixture Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/failing_after_suite/failing_after_suite_suite_test.go: -------------------------------------------------------------------------------- 1 | package failing_before_suite_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestFailingAfterSuite(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "FailingAfterSuite Suite") 13 | } 14 | 15 | var _ = BeforeSuite(func() { 16 | println("BEFORE SUITE") 17 | }) 18 | 19 | var _ = AfterSuite(func() { 20 | println("AFTER SUITE") 21 | panic("BAM!") 22 | }) 23 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/failing_after_suite/failing_after_suite_test.go: -------------------------------------------------------------------------------- 1 | package failing_before_suite_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | ) 6 | 7 | var _ = Describe("FailingBeforeSuite", func() { 8 | It("should run", func() { 9 | println("A TEST") 10 | }) 11 | 12 | It("should run", func() { 13 | println("A TEST") 14 | }) 15 | }) 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/failing_before_suite/failing_before_suite_suite_test.go: -------------------------------------------------------------------------------- 1 | package failing_before_suite_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestFailing_before_suite(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Failing_before_suite Suite") 13 | } 14 | 15 | var _ = BeforeSuite(func() { 16 | println("BEFORE SUITE") 17 | panic("BAM!") 18 | }) 19 | 20 | var _ = AfterSuite(func() { 21 | println("AFTER SUITE") 22 | }) 23 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/failing_before_suite/failing_before_suite_test.go: -------------------------------------------------------------------------------- 1 | package failing_before_suite_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | ) 6 | 7 | var _ = Describe("FailingBeforeSuite", func() { 8 | It("should never run", func() { 9 | println("NEVER SEE THIS") 10 | }) 11 | 12 | It("should never run", func() { 13 | println("NEVER SEE THIS") 14 | }) 15 | }) 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/failing_ginkgo_tests/failing_ginkgo_tests.go: -------------------------------------------------------------------------------- 1 | package failing_ginkgo_tests 2 | 3 | func AlwaysFalse() bool { 4 | return false 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/failing_ginkgo_tests/failing_ginkgo_tests_suite_test.go: -------------------------------------------------------------------------------- 1 | package failing_ginkgo_tests_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestFailing_ginkgo_tests(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Failing_ginkgo_tests Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/failing_ginkgo_tests/failing_ginkgo_tests_test.go: -------------------------------------------------------------------------------- 1 | package failing_ginkgo_tests_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/ginkgo/integration/_fixtures/failing_ginkgo_tests" 6 | . "github.com/onsi/gomega" 7 | ) 8 | 9 | var _ = Describe("FailingGinkgoTests", func() { 10 | It("should fail", func() { 11 | Ω(AlwaysFalse()).Should(BeTrue()) 12 | }) 13 | 14 | It("should pass", func() { 15 | Ω(AlwaysFalse()).Should(BeFalse()) 16 | }) 17 | }) 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags.go: -------------------------------------------------------------------------------- 1 | package flags 2 | 3 | func Tested() string { 4 | return "tested" 5 | } 6 | 7 | func Untested() string { 8 | return "untested" 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/flags_tests/flags_suite_test.go: -------------------------------------------------------------------------------- 1 | package flags_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestFlags(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Flags Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/focused_fixture/focused_fixture_suite_test.go: -------------------------------------------------------------------------------- 1 | package focused_fixture_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestFocused_fixture(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Focused_fixture Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/hanging_suite/hanging_suite_suite_test.go: -------------------------------------------------------------------------------- 1 | package hanging_suite_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestHangingSuite(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "HangingSuite Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/hanging_suite/hanging_suite_test.go: -------------------------------------------------------------------------------- 1 | package hanging_suite_test 2 | 3 | import ( 4 | "fmt" 5 | "time" 6 | . "github.com/onsi/ginkgo" 7 | ) 8 | 9 | var _ = AfterSuite(func() { 10 | fmt.Println("Heading Out After Suite") 11 | }) 12 | 13 | var _ = Describe("HangingSuite", func() { 14 | BeforeEach(func() { 15 | fmt.Fprintln(GinkgoWriter, "Just beginning") 16 | }) 17 | 18 | Context("inner context", func() { 19 | BeforeEach(func() { 20 | fmt.Fprintln(GinkgoWriter, "Almost there...") 21 | }) 22 | 23 | It("should hang out for a while", func() { 24 | fmt.Fprintln(GinkgoWriter, "Hanging Out") 25 | fmt.Println("Sleeping...") 26 | time.Sleep(time.Hour) 27 | }) 28 | }) 29 | }) 30 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/more_ginkgo_tests/more_ginkgo_tests.go: -------------------------------------------------------------------------------- 1 | package more_ginkgo_tests 2 | 3 | func AlwaysTrue() bool { 4 | return true 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/more_ginkgo_tests/more_ginkgo_tests_suite_test.go: -------------------------------------------------------------------------------- 1 | package more_ginkgo_tests_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestMore_ginkgo_tests(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "More_ginkgo_tests Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/more_ginkgo_tests/more_ginkgo_tests_test.go: -------------------------------------------------------------------------------- 1 | package more_ginkgo_tests_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/ginkgo/integration/_fixtures/more_ginkgo_tests" 6 | . "github.com/onsi/gomega" 7 | ) 8 | 9 | var _ = Describe("MoreGinkgoTests", func() { 10 | It("should pass", func() { 11 | Ω(AlwaysTrue()).Should(BeTrue()) 12 | }) 13 | 14 | It("should always pass", func() { 15 | Ω(AlwaysTrue()).Should(BeTrue()) 16 | }) 17 | }) 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/no_test_fn/no_test_fn.go: -------------------------------------------------------------------------------- 1 | package no_test_fn 2 | 3 | func StringIdentity(a string) string { 4 | return a 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/no_test_fn/no_test_fn_test.go: -------------------------------------------------------------------------------- 1 | package no_test_fn_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/ginkgo/integration/_fixtures/no_test_fn" 6 | . "github.com/onsi/gomega" 7 | ) 8 | 9 | var _ = Describe("NoTestFn", func() { 10 | It("should proxy strings", func() { 11 | Ω(StringIdentity("foo")).Should(Equal("foo")) 12 | }) 13 | }) 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/no_tests/no_tests.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | func main() { 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/passing_ginkgo_tests/passing_ginkgo_tests.go: -------------------------------------------------------------------------------- 1 | package passing_ginkgo_tests 2 | 3 | func StringIdentity(a string) string { 4 | return a 5 | } 6 | 7 | func IntegerIdentity(a int) int { 8 | return a 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/passing_ginkgo_tests/passing_ginkgo_tests_suite_test.go: -------------------------------------------------------------------------------- 1 | package passing_ginkgo_tests_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestPassing_ginkgo_tests(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Passing_ginkgo_tests Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/passing_suite_setup/passing_suite_setup_suite_test.go: -------------------------------------------------------------------------------- 1 | package passing_before_suite_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestPassingSuiteSetup(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "PassingSuiteSetup Suite") 13 | } 14 | 15 | var a string 16 | var b string 17 | 18 | var _ = BeforeSuite(func() { 19 | a = "ran before suite" 20 | println("BEFORE SUITE") 21 | }) 22 | 23 | var _ = AfterSuite(func() { 24 | b = "ran after suite" 25 | println("AFTER SUITE") 26 | }) 27 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/passing_suite_setup/passing_suite_test.go: -------------------------------------------------------------------------------- 1 | package passing_before_suite_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | ) 7 | 8 | var _ = Describe("PassingSuiteSetup", func() { 9 | It("should pass", func() { 10 | Ω(a).Should(Equal("ran before suite")) 11 | Ω(b).Should(BeEmpty()) 12 | }) 13 | 14 | It("should pass", func() { 15 | Ω(a).Should(Equal("ran before suite")) 16 | Ω(b).Should(BeEmpty()) 17 | }) 18 | 19 | It("should pass", func() { 20 | Ω(a).Should(Equal("ran before suite")) 21 | Ω(b).Should(BeEmpty()) 22 | }) 23 | 24 | It("should pass", func() { 25 | Ω(a).Should(Equal("ran before suite")) 26 | Ω(b).Should(BeEmpty()) 27 | }) 28 | }) 29 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/progress_fixture/progress_fixture_suite_test.go: -------------------------------------------------------------------------------- 1 | package progress_fixture_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestProgressFixture(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "ProgressFixture Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/skip_fixture/skip_fixture_suite_test.go: -------------------------------------------------------------------------------- 1 | package fail_fixture_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestFail_fixture(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Skip_fixture Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/suite_command_tests/suite_command.go: -------------------------------------------------------------------------------- 1 | package suite_command 2 | 3 | func Tested() string { 4 | return "tested" 5 | } 6 | 7 | func Untested() string { 8 | return "untested" 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/suite_command_tests/suite_command_suite_test.go: -------------------------------------------------------------------------------- 1 | package suite_command_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestSuiteCommand(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Suite Command Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/suite_command_tests/suite_command_test.go: -------------------------------------------------------------------------------- 1 | package suite_command_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | ) 7 | 8 | var _ = Describe("Testing suite command", func() { 9 | It("it should succeed", func() { 10 | Ω(true).Should(Equal(true)) 11 | }) 12 | 13 | PIt("a failing test", func() { 14 | It("should fail", func() { 15 | Ω(true).Should(Equal(false)) 16 | }) 17 | }) 18 | }) 19 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/tags_tests/ignored_test.go: -------------------------------------------------------------------------------- 1 | // +build complex_tests 2 | 3 | package tags_tests_test 4 | 5 | import ( 6 | . "github.com/onsi/ginkgo" 7 | ) 8 | 9 | var _ = Describe("Ignored", func() { 10 | It("should not have these tests", func() { 11 | 12 | }) 13 | 14 | It("should not have these tests", func() { 15 | 16 | }) 17 | }) 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/tags_tests/tags_tests_suite_test.go: -------------------------------------------------------------------------------- 1 | package tags_tests_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestTagsTests(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "TagsTests Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/tags_tests/tags_tests_test.go: -------------------------------------------------------------------------------- 1 | package tags_tests_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | ) 6 | 7 | var _ = Describe("TagsTests", func() { 8 | It("should have a test", func() { 9 | 10 | }) 11 | }) 12 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/test_description/test_description_suite_test.go: -------------------------------------------------------------------------------- 1 | package test_description_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestTestDescription(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "TestDescription Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/test_description/test_description_test.go: -------------------------------------------------------------------------------- 1 | package test_description_test 2 | 3 | import ( 4 | "fmt" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | var _ = Describe("TestDescription", func() { 11 | It("should pass", func() { 12 | Ω(true).Should(BeTrue()) 13 | }) 14 | 15 | It("should fail", func() { 16 | Ω(true).Should(BeFalse()) 17 | }) 18 | 19 | AfterEach(func() { 20 | description := CurrentGinkgoTestDescription() 21 | fmt.Printf("%s:%t\n", description.FullTestText, description.Failed) 22 | }) 23 | }) 24 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/A/A.go: -------------------------------------------------------------------------------- 1 | package A 2 | 3 | import "github.com/onsi/B" 4 | 5 | func DoIt() string { 6 | return B.DoIt() 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/A/A_suite_test.go: -------------------------------------------------------------------------------- 1 | package A_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestA(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "A Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/A/A_test.go: -------------------------------------------------------------------------------- 1 | package A_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/A" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | var _ = Describe("A", func() { 11 | It("should do it", func() { 12 | Ω(DoIt()).Should(Equal("done!")) 13 | }) 14 | }) 15 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/B/B.go: -------------------------------------------------------------------------------- 1 | package B 2 | 3 | import "github.com/onsi/C" 4 | 5 | func DoIt() string { 6 | return C.DoIt() 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/B/B_suite_test.go: -------------------------------------------------------------------------------- 1 | package B_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestB(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "B Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/B/B_test.go: -------------------------------------------------------------------------------- 1 | package B_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/B" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | var _ = Describe("B", func() { 11 | It("should do it", func() { 12 | Ω(DoIt()).Should(Equal("done!")) 13 | }) 14 | }) 15 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/C/C.go: -------------------------------------------------------------------------------- 1 | package C 2 | 3 | func DoIt() string { 4 | return "done!" 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/C/C.json: -------------------------------------------------------------------------------- 1 | { 2 | "fixture": "data" 3 | } -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/C/C_suite_test.go: -------------------------------------------------------------------------------- 1 | package C_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestC(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "C Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/C/C_test.go: -------------------------------------------------------------------------------- 1 | package C_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/C" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | var _ = Describe("C", func() { 11 | It("should do it", func() { 12 | Ω(DoIt()).Should(Equal("done!")) 13 | }) 14 | }) 15 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/D/D.go: -------------------------------------------------------------------------------- 1 | package D 2 | 3 | import "github.com/onsi/C" 4 | 5 | func DoIt() string { 6 | return C.DoIt() 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/D/D_suite_test.go: -------------------------------------------------------------------------------- 1 | package D_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestD(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "D Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/D/D_test.go: -------------------------------------------------------------------------------- 1 | package D_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo/integration/_fixtures/watch_fixtures/C" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | var _ = Describe("D", func() { 11 | It("should do it", func() { 12 | Ω(DoIt()).Should(Equal("done!")) 13 | }) 14 | }) 15 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/xunit_tests/xunit_tests.go: -------------------------------------------------------------------------------- 1 | package xunit_tests 2 | 3 | func AlwaysTrue() bool { 4 | return true 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/_fixtures/xunit_tests/xunit_tests_test.go: -------------------------------------------------------------------------------- 1 | package xunit_tests 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | func TestAlwaysTrue(t *testing.T) { 8 | if AlwaysTrue() != true { 9 | t.Errorf("Expected true, got false") 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/integration.go: -------------------------------------------------------------------------------- 1 | package integration 2 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/integration/test_description_test.go: -------------------------------------------------------------------------------- 1 | package integration_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | "github.com/onsi/gomega/gbytes" 7 | "github.com/onsi/gomega/gexec" 8 | ) 9 | 10 | var _ = Describe("TestDescription", func() { 11 | var pathToTest string 12 | 13 | BeforeEach(func() { 14 | pathToTest = tmpPath("test_description") 15 | copyIn("test_description", pathToTest) 16 | }) 17 | 18 | It("should capture and emit information about the current test", func() { 19 | session := startGinkgo(pathToTest, "--noColor") 20 | Eventually(session).Should(gexec.Exit(1)) 21 | 22 | Ω(session).Should(gbytes.Say("TestDescription should pass:false")) 23 | Ω(session).Should(gbytes.Say("TestDescription should fail:true")) 24 | }) 25 | }) 26 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/codelocation/code_location_suite_test.go: -------------------------------------------------------------------------------- 1 | package codelocation_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestCodelocation(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CodeLocation Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/containernode/container_node_suite_test.go: -------------------------------------------------------------------------------- 1 | package containernode_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestContainernode(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Containernode Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/failer/failer_suite_test.go: -------------------------------------------------------------------------------- 1 | package failer_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestFailer(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Failer Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/leafnodes/interfaces.go: -------------------------------------------------------------------------------- 1 | package leafnodes 2 | 3 | import ( 4 | "github.com/onsi/ginkgo/types" 5 | ) 6 | 7 | type BasicNode interface { 8 | Type() types.SpecComponentType 9 | Run() (types.SpecState, types.SpecFailure) 10 | CodeLocation() types.CodeLocation 11 | } 12 | 13 | type SubjectNode interface { 14 | BasicNode 15 | 16 | Text() string 17 | Flag() types.FlagType 18 | Samples() int 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/leafnodes/leaf_node_suite_test.go: -------------------------------------------------------------------------------- 1 | package leafnodes_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestLeafNode(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "LeafNode Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/fake_output_interceptor_test.go: -------------------------------------------------------------------------------- 1 | package remote_test 2 | 3 | type fakeOutputInterceptor struct { 4 | DidStartInterceptingOutput bool 5 | DidStopInterceptingOutput bool 6 | InterceptedOutput string 7 | } 8 | 9 | func (interceptor *fakeOutputInterceptor) StartInterceptingOutput() error { 10 | interceptor.DidStartInterceptingOutput = true 11 | return nil 12 | } 13 | 14 | func (interceptor *fakeOutputInterceptor) StopInterceptingAndReturnOutput() (string, error) { 15 | interceptor.DidStopInterceptingOutput = true 16 | return interceptor.InterceptedOutput, nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/fake_poster_test.go: -------------------------------------------------------------------------------- 1 | package remote_test 2 | 3 | import ( 4 | "io" 5 | "io/ioutil" 6 | "net/http" 7 | ) 8 | 9 | type post struct { 10 | url string 11 | bodyType string 12 | bodyContent []byte 13 | } 14 | 15 | type fakePoster struct { 16 | posts []post 17 | } 18 | 19 | func newFakePoster() *fakePoster { 20 | return &fakePoster{ 21 | posts: make([]post, 0), 22 | } 23 | } 24 | 25 | func (poster *fakePoster) Post(url string, bodyType string, body io.Reader) (resp *http.Response, err error) { 26 | bodyContent, _ := ioutil.ReadAll(body) 27 | poster.posts = append(poster.posts, post{ 28 | url: url, 29 | bodyType: bodyType, 30 | bodyContent: bodyContent, 31 | }) 32 | return nil, nil 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/output_interceptor.go: -------------------------------------------------------------------------------- 1 | package remote 2 | 3 | /* 4 | The OutputInterceptor is used by the ForwardingReporter to 5 | intercept and capture all stdin and stderr output during a test run. 6 | */ 7 | type OutputInterceptor interface { 8 | StartInterceptingOutput() error 9 | StopInterceptingAndReturnOutput() (string, error) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/output_interceptor_win.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package remote 4 | 5 | import ( 6 | "errors" 7 | ) 8 | 9 | func NewOutputInterceptor() OutputInterceptor { 10 | return &outputInterceptor{} 11 | } 12 | 13 | type outputInterceptor struct { 14 | intercepting bool 15 | } 16 | 17 | func (interceptor *outputInterceptor) StartInterceptingOutput() error { 18 | if interceptor.intercepting { 19 | return errors.New("Already intercepting output!") 20 | } 21 | interceptor.intercepting = true 22 | 23 | // not working on windows... 24 | 25 | return nil 26 | } 27 | 28 | func (interceptor *outputInterceptor) StopInterceptingAndReturnOutput() (string, error) { 29 | // not working on windows... 30 | interceptor.intercepting = false 31 | 32 | return "", nil 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/remote_suite_test.go: -------------------------------------------------------------------------------- 1 | package remote_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestRemote(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Remote Spec Forwarding Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // +build linux,arm64 2 | 3 | package remote 4 | 5 | import "syscall" 6 | 7 | // linux_arm64 doesn't have syscall.Dup2 which ginkgo uses, so 8 | // use the nearly identical syscall.Dup3 instead 9 | func syscallDup(oldfd int, newfd int) (err error) { 10 | return syscall.Dup3(oldfd, newfd, 0) 11 | } -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | 3 | package remote 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | func syscallDup(oldfd int, newfd int) (err error) { 8 | return unix.Dup2(oldfd, newfd) 9 | } -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/remote/syscall_dup_unix.go: -------------------------------------------------------------------------------- 1 | // +build !linux !arm64 2 | // +build !windows 3 | // +build !solaris 4 | 5 | package remote 6 | 7 | import "syscall" 8 | 9 | func syscallDup(oldfd int, newfd int) (err error) { 10 | return syscall.Dup2(oldfd, newfd) 11 | } -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/spec/spec_suite_test.go: -------------------------------------------------------------------------------- 1 | package spec_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestSpec(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Spec Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/spec_iterator/spec_iterator.go: -------------------------------------------------------------------------------- 1 | package spec_iterator 2 | 3 | import ( 4 | "errors" 5 | 6 | "github.com/onsi/ginkgo/internal/spec" 7 | ) 8 | 9 | var ErrClosed = errors.New("no more specs to run") 10 | 11 | type SpecIterator interface { 12 | Next() (*spec.Spec, error) 13 | NumberOfSpecsPriorToIteration() int 14 | NumberOfSpecsToProcessIfKnown() (int, bool) 15 | NumberOfSpecsThatWillBeRunIfKnown() (int, bool) 16 | } 17 | 18 | type Counter struct { 19 | Index int `json:"index"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/spec_iterator/spec_iterator_suite_test.go: -------------------------------------------------------------------------------- 1 | package spec_iterator_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestSpecIterator(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "SpecIterator Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/specrunner/random_id.go: -------------------------------------------------------------------------------- 1 | package specrunner 2 | 3 | import ( 4 | "crypto/rand" 5 | "fmt" 6 | ) 7 | 8 | func randomID() string { 9 | b := make([]byte, 8) 10 | _, err := rand.Read(b) 11 | if err != nil { 12 | return "" 13 | } 14 | return fmt.Sprintf("%x-%x-%x-%x", b[0:2], b[2:4], b[4:6], b[6:8]) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/specrunner/spec_runner_suite_test.go: -------------------------------------------------------------------------------- 1 | package specrunner_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestSpecRunner(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Spec Runner Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/suite/suite_suite_test.go: -------------------------------------------------------------------------------- 1 | package suite_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func Test(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Suite") 13 | } 14 | 15 | var numBeforeSuiteRuns = 0 16 | var numAfterSuiteRuns = 0 17 | 18 | var _ = BeforeSuite(func() { 19 | numBeforeSuiteRuns++ 20 | }) 21 | 22 | var _ = AfterSuite(func() { 23 | numAfterSuiteRuns++ 24 | Ω(numBeforeSuiteRuns).Should(Equal(1)) 25 | Ω(numAfterSuiteRuns).Should(Equal(1)) 26 | }) 27 | 28 | //Fakes 29 | type fakeTestingT struct { 30 | didFail bool 31 | } 32 | 33 | func (fakeT *fakeTestingT) Fail() { 34 | fakeT.didFail = true 35 | } 36 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/internal/writer/writer_suite_test.go: -------------------------------------------------------------------------------- 1 | package writer_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestWriter(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Writer Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/reporter.go: -------------------------------------------------------------------------------- 1 | package reporters 2 | 3 | import ( 4 | "github.com/onsi/ginkgo/config" 5 | "github.com/onsi/ginkgo/types" 6 | ) 7 | 8 | type Reporter interface { 9 | SpecSuiteWillBegin(config config.GinkgoConfigType, summary *types.SuiteSummary) 10 | BeforeSuiteDidRun(setupSummary *types.SetupSummary) 11 | SpecWillRun(specSummary *types.SpecSummary) 12 | SpecDidComplete(specSummary *types.SpecSummary) 13 | AfterSuiteDidRun(setupSummary *types.SetupSummary) 14 | SpecSuiteDidEnd(summary *types.SuiteSummary) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/reporters_suite_test.go: -------------------------------------------------------------------------------- 1 | package reporters_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestReporters(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Reporters Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/README.md: -------------------------------------------------------------------------------- 1 | ## Colorize Windows 2 | 3 | These packages are used for colorize on Windows and contributed by mattn.jp@gmail.com 4 | 5 | * go-colorable: 6 | * go-isatty: 7 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable/colorable_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package colorable 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func NewColorable(file *os.File) io.Writer { 11 | if file == nil { 12 | panic("nil passed instead of *os.File to NewColorable()") 13 | } 14 | 15 | return file 16 | } 17 | 18 | func NewColorableStdout() io.Writer { 19 | return os.Stdout 20 | } 21 | 22 | func NewColorableStderr() io.Writer { 23 | return os.Stderr 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/README.md: -------------------------------------------------------------------------------- 1 | # go-isatty 2 | 3 | isatty for golang 4 | 5 | ## Usage 6 | 7 | ```go 8 | package main 9 | 10 | import ( 11 | "fmt" 12 | "github.com/mattn/go-isatty" 13 | "os" 14 | ) 15 | 16 | func main() { 17 | if isatty.IsTerminal(os.Stdout.Fd()) { 18 | fmt.Println("Is Terminal") 19 | } else { 20 | fmt.Println("Is Not Terminal") 21 | } 22 | } 23 | ``` 24 | 25 | ## Installation 26 | 27 | ``` 28 | $ go get github.com/mattn/go-isatty 29 | ``` 30 | 31 | # License 32 | 33 | MIT 34 | 35 | # Author 36 | 37 | Yasuhiro Matsumoto (a.k.a mattn) 38 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TIOCGETA 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | const ioctlReadTermios = syscall.TCGETS 12 | 13 | // IsTerminal return true if the file descriptor is terminal. 14 | func IsTerminal(fd uintptr) bool { 15 | var termios syscall.Termios 16 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 17 | return err == 0 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libbc/libc/gen/common/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | var termio unix.Termio 14 | err := unix.IoctlSetTermio(int(fd), unix.TCGETA, &termio) 15 | return err == nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty/isatty_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | "unsafe" 9 | ) 10 | 11 | var kernel32 = syscall.NewLazyDLL("kernel32.dll") 12 | var procGetConsoleMode = kernel32.NewProc("GetConsoleMode") 13 | 14 | // IsTerminal return true if the file descriptor is terminal. 15 | func IsTerminal(fd uintptr) bool { 16 | var st uint32 17 | r, _, e := syscall.Syscall(procGetConsoleMode.Addr(), 2, fd, uintptr(unsafe.Pointer(&st)), 0) 18 | return r != 0 && e == 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/types/code_location.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | type CodeLocation struct { 8 | FileName string 9 | LineNumber int 10 | FullStackTrace string 11 | } 12 | 13 | func (codeLocation CodeLocation) String() string { 14 | return fmt.Sprintf("%s:%d", codeLocation.FileName, codeLocation.LineNumber) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/types/synchronization.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type RemoteBeforeSuiteState int 8 | 9 | const ( 10 | RemoteBeforeSuiteStateInvalid RemoteBeforeSuiteState = iota 11 | 12 | RemoteBeforeSuiteStatePending 13 | RemoteBeforeSuiteStatePassed 14 | RemoteBeforeSuiteStateFailed 15 | RemoteBeforeSuiteStateDisappeared 16 | ) 17 | 18 | type RemoteBeforeSuiteData struct { 19 | Data []byte 20 | State RemoteBeforeSuiteState 21 | } 22 | 23 | func (r RemoteBeforeSuiteData) ToJSON() []byte { 24 | data, _ := json.Marshal(r) 25 | return data 26 | } 27 | 28 | type RemoteAfterSuiteData struct { 29 | CanRun bool 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/types/types_suite_test.go: -------------------------------------------------------------------------------- 1 | package types_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestTypes(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Types Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.test 3 | . 4 | .idea 5 | gomega.iml 6 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.6 4 | - 1.7 5 | 6 | install: 7 | - go get -v ./... 8 | - go get github.com/onsi/ginkgo 9 | - go install github.com/onsi/ginkgo/ginkgo 10 | 11 | script: $HOME/gopath/bin/ginkgo -r --randomizeAllSpecs --failOnPending --randomizeSuites --race 12 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/format/format_suite_test.go: -------------------------------------------------------------------------------- 1 | package format_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestFormat(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Format Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/gbytes/gbuffer_suite_test.go: -------------------------------------------------------------------------------- 1 | package gbytes_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestGbytes(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Gbytes Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/gexec/gexec_suite_test.go: -------------------------------------------------------------------------------- 1 | package gexec_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | "github.com/onsi/gomega/gexec" 7 | 8 | "testing" 9 | ) 10 | 11 | var fireflyPath string 12 | 13 | func TestGexec(t *testing.T) { 14 | BeforeSuite(func() { 15 | var err error 16 | fireflyPath, err = gexec.Build("./_fixture/firefly") 17 | Ω(err).ShouldNot(HaveOccurred()) 18 | }) 19 | 20 | AfterSuite(func() { 21 | gexec.CleanupBuildArtifacts() 22 | }) 23 | 24 | RegisterFailHandler(Fail) 25 | RunSpecs(t, "Gexec Suite") 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/ghttp/protobuf/protobuf.go: -------------------------------------------------------------------------------- 1 | package protobuf 2 | 3 | //go:generate protoc --go_out=. simple_message.proto 4 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/ghttp/protobuf/simple_message.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto2"; 2 | 3 | package protobuf; 4 | 5 | message SimpleMessage { 6 | required string description = 1; 7 | required int32 id = 2; 8 | optional string metadata = 3; 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/ghttp/test_server_suite_test.go: -------------------------------------------------------------------------------- 1 | package ghttp_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestGHTTP(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "GHTTP Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/gstruct/gstruct_tests_suite_test.go: -------------------------------------------------------------------------------- 1 | package gstruct_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func Test(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Gstruct Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/gstruct/ignore_test.go: -------------------------------------------------------------------------------- 1 | package gstruct_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | . "github.com/onsi/gomega/gstruct" 7 | ) 8 | 9 | var _ = Describe("Ignore", func() { 10 | It("should always succeed", func() { 11 | Ω(nil).Should(Ignore()) 12 | Ω(struct{}{}).Should(Ignore()) 13 | Ω(0).Should(Ignore()) 14 | Ω(false).Should(Ignore()) 15 | }) 16 | 17 | It("should always fail", func() { 18 | Ω(nil).ShouldNot(Reject()) 19 | Ω(struct{}{}).ShouldNot(Reject()) 20 | Ω(1).ShouldNot(Reject()) 21 | Ω(true).ShouldNot(Reject()) 22 | }) 23 | }) 24 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/gstruct/types.go: -------------------------------------------------------------------------------- 1 | package gstruct 2 | 3 | //Options is the type for options passed to some matchers. 4 | type Options int 5 | 6 | const ( 7 | //IgnoreExtras tells the matcher to ignore extra elements or fields, rather than triggering a failure. 8 | IgnoreExtras Options = 1 << iota 9 | //IgnoreMissing tells the matcher to ignore missing elements or fields, rather than triggering a failure. 10 | IgnoreMissing 11 | //AllowDuplicates tells the matcher to permit multiple members of the slice to produce the same ID when 12 | //considered by the indentifier function. All members that map to a given key must still match successfully 13 | //with the matcher that is provided for that key. 14 | AllowDuplicates 15 | ) 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/internal/assertion/assertion_suite_test.go: -------------------------------------------------------------------------------- 1 | package assertion_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestAssertion(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Assertion Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/internal/asyncassertion/async_assertion_suite_test.go: -------------------------------------------------------------------------------- 1 | package asyncassertion_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | 7 | "testing" 8 | ) 9 | 10 | func TestAsyncAssertion(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "AsyncAssertion Suite") 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/internal/fakematcher/fake_matcher.go: -------------------------------------------------------------------------------- 1 | package fakematcher 2 | 3 | import "fmt" 4 | 5 | type FakeMatcher struct { 6 | ReceivedActual interface{} 7 | MatchesToReturn bool 8 | ErrToReturn error 9 | } 10 | 11 | func (matcher *FakeMatcher) Match(actual interface{}) (bool, error) { 12 | matcher.ReceivedActual = actual 13 | 14 | return matcher.MatchesToReturn, matcher.ErrToReturn 15 | } 16 | 17 | func (matcher *FakeMatcher) FailureMessage(actual interface{}) string { 18 | return fmt.Sprintf("positive: %v", actual) 19 | } 20 | 21 | func (matcher *FakeMatcher) NegatedFailureMessage(actual interface{}) string { 22 | return fmt.Sprintf("negative: %v", actual) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/internal/testingtsupport/testing_t_support_test.go: -------------------------------------------------------------------------------- 1 | package testingtsupport_test 2 | 3 | import ( 4 | . "github.com/onsi/gomega" 5 | 6 | "testing" 7 | ) 8 | 9 | func TestTestingT(t *testing.T) { 10 | RegisterTestingT(t) 11 | Ω(true).Should(BeTrue()) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "fmt" 5 | "github.com/onsi/gomega/format" 6 | ) 7 | 8 | type BeEmptyMatcher struct { 9 | } 10 | 11 | func (matcher *BeEmptyMatcher) Match(actual interface{}) (success bool, err error) { 12 | length, ok := lengthOf(actual) 13 | if !ok { 14 | return false, fmt.Errorf("BeEmpty matcher expects a string/array/map/channel/slice. Got:\n%s", format.Object(actual, 1)) 15 | } 16 | 17 | return length == 0, nil 18 | } 19 | 20 | func (matcher *BeEmptyMatcher) FailureMessage(actual interface{}) (message string) { 21 | return format.Message(actual, "to be empty") 22 | } 23 | 24 | func (matcher *BeEmptyMatcher) NegatedFailureMessage(actual interface{}) (message string) { 25 | return format.Message(actual, "not to be empty") 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_false_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "fmt" 5 | "github.com/onsi/gomega/format" 6 | ) 7 | 8 | type BeFalseMatcher struct { 9 | } 10 | 11 | func (matcher *BeFalseMatcher) Match(actual interface{}) (success bool, err error) { 12 | if !isBool(actual) { 13 | return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) 14 | } 15 | 16 | return actual == false, nil 17 | } 18 | 19 | func (matcher *BeFalseMatcher) FailureMessage(actual interface{}) (message string) { 20 | return format.Message(actual, "to be false") 21 | } 22 | 23 | func (matcher *BeFalseMatcher) NegatedFailureMessage(actual interface{}) (message string) { 24 | return format.Message(actual, "not to be false") 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_false_matcher_test.go: -------------------------------------------------------------------------------- 1 | package matchers_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | . "github.com/onsi/gomega/matchers" 7 | ) 8 | 9 | var _ = Describe("BeFalse", func() { 10 | It("should handle true and false correctly", func() { 11 | Ω(true).ShouldNot(BeFalse()) 12 | Ω(false).Should(BeFalse()) 13 | }) 14 | 15 | It("should only support booleans", func() { 16 | success, err := (&BeFalseMatcher{}).Match("foo") 17 | Ω(success).Should(BeFalse()) 18 | Ω(err).Should(HaveOccurred()) 19 | }) 20 | }) 21 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import "github.com/onsi/gomega/format" 4 | 5 | type BeNilMatcher struct { 6 | } 7 | 8 | func (matcher *BeNilMatcher) Match(actual interface{}) (success bool, err error) { 9 | return isNil(actual), nil 10 | } 11 | 12 | func (matcher *BeNilMatcher) FailureMessage(actual interface{}) (message string) { 13 | return format.Message(actual, "to be nil") 14 | } 15 | 16 | func (matcher *BeNilMatcher) NegatedFailureMessage(actual interface{}) (message string) { 17 | return format.Message(actual, "not to be nil") 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_nil_matcher_test.go: -------------------------------------------------------------------------------- 1 | package matchers_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | ) 7 | 8 | var _ = Describe("BeNil", func() { 9 | It("should succeed when passed nil", func() { 10 | Ω(nil).Should(BeNil()) 11 | }) 12 | 13 | It("should succeed when passed a typed nil", func() { 14 | var a []int 15 | Ω(a).Should(BeNil()) 16 | }) 17 | 18 | It("should succeed when passing nil pointer", func() { 19 | var f *struct{} 20 | Ω(f).Should(BeNil()) 21 | }) 22 | 23 | It("should not succeed when not passed nil", func() { 24 | Ω(0).ShouldNot(BeNil()) 25 | Ω(false).ShouldNot(BeNil()) 26 | Ω("").ShouldNot(BeNil()) 27 | }) 28 | }) 29 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_true_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "fmt" 5 | "github.com/onsi/gomega/format" 6 | ) 7 | 8 | type BeTrueMatcher struct { 9 | } 10 | 11 | func (matcher *BeTrueMatcher) Match(actual interface{}) (success bool, err error) { 12 | if !isBool(actual) { 13 | return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) 14 | } 15 | 16 | return actual.(bool), nil 17 | } 18 | 19 | func (matcher *BeTrueMatcher) FailureMessage(actual interface{}) (message string) { 20 | return format.Message(actual, "to be true") 21 | } 22 | 23 | func (matcher *BeTrueMatcher) NegatedFailureMessage(actual interface{}) (message string) { 24 | return format.Message(actual, "not to be true") 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_true_matcher_test.go: -------------------------------------------------------------------------------- 1 | package matchers_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | . "github.com/onsi/gomega/matchers" 7 | ) 8 | 9 | var _ = Describe("BeTrue", func() { 10 | It("should handle true and false correctly", func() { 11 | Ω(true).Should(BeTrue()) 12 | Ω(false).ShouldNot(BeTrue()) 13 | }) 14 | 15 | It("should only support booleans", func() { 16 | success, err := (&BeTrueMatcher{}).Match("foo") 17 | Ω(success).Should(BeFalse()) 18 | Ω(err).Should(HaveOccurred()) 19 | }) 20 | }) 21 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_zero_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "github.com/onsi/gomega/format" 5 | "reflect" 6 | ) 7 | 8 | type BeZeroMatcher struct { 9 | } 10 | 11 | func (matcher *BeZeroMatcher) Match(actual interface{}) (success bool, err error) { 12 | if actual == nil { 13 | return true, nil 14 | } 15 | zeroValue := reflect.Zero(reflect.TypeOf(actual)).Interface() 16 | 17 | return reflect.DeepEqual(zeroValue, actual), nil 18 | 19 | } 20 | 21 | func (matcher *BeZeroMatcher) FailureMessage(actual interface{}) (message string) { 22 | return format.Message(actual, "to be zero-valued") 23 | } 24 | 25 | func (matcher *BeZeroMatcher) NegatedFailureMessage(actual interface{}) (message string) { 26 | return format.Message(actual, "not to be zero-valued") 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_zero_matcher_test.go: -------------------------------------------------------------------------------- 1 | package matchers_test 2 | 3 | import ( 4 | . "github.com/onsi/ginkgo" 5 | . "github.com/onsi/gomega" 6 | ) 7 | 8 | var _ = Describe("BeZero", func() { 9 | It("should succeed if the passed in object is the zero value for its type", func() { 10 | Ω(nil).Should(BeZero()) 11 | 12 | Ω("").Should(BeZero()) 13 | Ω(" ").ShouldNot(BeZero()) 14 | 15 | Ω(0).Should(BeZero()) 16 | Ω(1).ShouldNot(BeZero()) 17 | 18 | Ω(0.0).Should(BeZero()) 19 | Ω(0.1).ShouldNot(BeZero()) 20 | 21 | // Ω([]int{}).Should(BeZero()) 22 | Ω([]int{1}).ShouldNot(BeZero()) 23 | 24 | // Ω(map[string]int{}).Should(BeZero()) 25 | Ω(map[string]int{"a": 1}).ShouldNot(BeZero()) 26 | 27 | Ω(myCustomType{}).Should(BeZero()) 28 | Ω(myCustomType{s: "a"}).ShouldNot(BeZero()) 29 | }) 30 | }) 31 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/matcher_tests_suite_test.go: -------------------------------------------------------------------------------- 1 | package matchers_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | type myStringer struct { 11 | a string 12 | } 13 | 14 | func (s *myStringer) String() string { 15 | return s.a 16 | } 17 | 18 | type StringAlias string 19 | 20 | type myCustomType struct { 21 | s string 22 | n int 23 | f float32 24 | arr []string 25 | } 26 | 27 | func Test(t *testing.T) { 28 | RegisterFailHandler(Fail) 29 | RunSpecs(t, "Gomega Matchers") 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go: -------------------------------------------------------------------------------- 1 | package node 2 | 3 | type Node struct { 4 | Id int 5 | } 6 | 7 | type NodeOrderedSet []Node 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/util/util.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import "math" 4 | 5 | func Odd(n int) bool { 6 | return math.Mod(float64(n), 2.0) == 1.0 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/types/types.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | type GomegaFailHandler func(message string, callerSkip ...int) 4 | 5 | //A simple *testing.T interface wrapper 6 | type GomegaTestingT interface { 7 | Errorf(format string, args ...interface{}) 8 | } 9 | 10 | //All Gomega matchers must implement the GomegaMatcher interface 11 | // 12 | //For details on writing custom matchers, check out: http://onsi.github.io/gomega/#adding_your_own_matchers 13 | type GomegaMatcher interface { 14 | Match(actual interface{}) (success bool, err error) 15 | FailureMessage(actual interface{}) (message string) 16 | NegatedFailureMessage(actual interface{}) (message string) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/pmezard/go-difflib/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.5 4 | - tip 5 | 6 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/.gitignore: -------------------------------------------------------------------------------- 1 | *.[68] 2 | *.a 3 | *.out 4 | *.swp 5 | _obj 6 | _testmain.go 7 | cmd/metrics-bench/metrics-bench 8 | cmd/metrics-example/metrics-example 9 | cmd/never-read/never-read 10 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | 9 | script: 10 | - ./validate.sh 11 | 12 | # this should give us faster builds according to 13 | # http://docs.travis-ci.com/user/migrating-from-legacy/ 14 | sudo: false 15 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/cmd/metrics-bench/metrics-bench.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "github.com/rcrowley/go-metrics" 6 | "time" 7 | ) 8 | 9 | func main() { 10 | r := metrics.NewRegistry() 11 | for i := 0; i < 10000; i++ { 12 | r.Register(fmt.Sprintf("counter-%d", i), metrics.NewCounter()) 13 | r.Register(fmt.Sprintf("gauge-%d", i), metrics.NewGauge()) 14 | r.Register(fmt.Sprintf("gaugefloat64-%d", i), metrics.NewGaugeFloat64()) 15 | r.Register(fmt.Sprintf("histogram-uniform-%d", i), metrics.NewHistogram(metrics.NewUniformSample(1028))) 16 | r.Register(fmt.Sprintf("histogram-exp-%d", i), metrics.NewHistogram(metrics.NewExpDecaySample(1028, 0.015))) 17 | r.Register(fmt.Sprintf("meter-%d", i), metrics.NewMeter()) 18 | } 19 | time.Sleep(600e9) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/cmd/never-read/never-read.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "log" 5 | "net" 6 | ) 7 | 8 | func main() { 9 | addr, _ := net.ResolveTCPAddr("tcp", "127.0.0.1:2003") 10 | l, err := net.ListenTCP("tcp", addr) 11 | if nil != err { 12 | log.Fatalln(err) 13 | } 14 | log.Println("listening", l.Addr()) 15 | for { 16 | c, err := l.AcceptTCP() 17 | if nil != err { 18 | log.Fatalln(err) 19 | } 20 | log.Println("accepted", c.RemoteAddr()) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/graphite_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "net" 5 | "time" 6 | ) 7 | 8 | func ExampleGraphite() { 9 | addr, _ := net.ResolveTCPAddr("net", ":2003") 10 | go Graphite(DefaultRegistry, 1*time.Second, "some.prefix", addr) 11 | } 12 | 13 | func ExampleGraphiteWithConfig() { 14 | addr, _ := net.ResolveTCPAddr("net", ":2003") 15 | go GraphiteWithConfig(GraphiteConfig{ 16 | Addr: addr, 17 | Registry: DefaultRegistry, 18 | FlushInterval: 1 * time.Second, 19 | DurationUnit: time.Millisecond, 20 | Percentiles: []float64{0.5, 0.75, 0.99, 0.999}, 21 | }) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/json_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "bytes" 5 | "encoding/json" 6 | "testing" 7 | ) 8 | 9 | func TestRegistryMarshallJSON(t *testing.T) { 10 | b := &bytes.Buffer{} 11 | enc := json.NewEncoder(b) 12 | r := NewRegistry() 13 | r.Register("counter", NewCounter()) 14 | enc.Encode(r) 15 | if s := b.String(); "{\"counter\":{\"count\":0}}\n" != s { 16 | t.Fatalf(s) 17 | } 18 | } 19 | 20 | func TestRegistryWriteJSONOnce(t *testing.T) { 21 | r := NewRegistry() 22 | r.Register("counter", NewCounter()) 23 | b := &bytes.Buffer{} 24 | WriteJSONOnce(r, b) 25 | if s := b.String(); s != "{\"counter\":{\"count\":0}}\n" { 26 | t.Fail() 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/metrics.go: -------------------------------------------------------------------------------- 1 | // Go port of Coda Hale's Metrics library 2 | // 3 | // 4 | // 5 | // Coda Hale's original work: 6 | package metrics 7 | 8 | // UseNilMetrics is checked by the constructor functions for all of the 9 | // standard metrics. If it is true, the metric returned is a stub. 10 | // 11 | // This global kill-switch helps quantify the observer effect and makes 12 | // for less cluttered pprof profiles. 13 | var UseNilMetrics bool = false 14 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/opentsdb_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "net" 5 | "time" 6 | ) 7 | 8 | func ExampleOpenTSDB() { 9 | addr, _ := net.ResolveTCPAddr("net", ":2003") 10 | go OpenTSDB(DefaultRegistry, 1*time.Second, "some.prefix", addr) 11 | } 12 | 13 | func ExampleOpenTSDBWithConfig() { 14 | addr, _ := net.ResolveTCPAddr("net", ":2003") 15 | go OpenTSDBWithConfig(OpenTSDBConfig{ 16 | Addr: addr, 17 | Registry: DefaultRegistry, 18 | FlushInterval: 1 * time.Second, 19 | DurationUnit: time.Millisecond, 20 | }) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_cgo.go: -------------------------------------------------------------------------------- 1 | // +build cgo 2 | // +build !appengine 3 | 4 | package metrics 5 | 6 | import "runtime" 7 | 8 | func numCgoCall() int64 { 9 | return runtime.NumCgoCall() 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_gccpufraction.go: -------------------------------------------------------------------------------- 1 | // +build go1.5 2 | 3 | package metrics 4 | 5 | import "runtime" 6 | 7 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 8 | return memStats.GCCPUFraction 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_no_cgo.go: -------------------------------------------------------------------------------- 1 | // +build !cgo appengine 2 | 3 | package metrics 4 | 5 | func numCgoCall() int64 { 6 | return 0 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/runtime_no_gccpufraction.go: -------------------------------------------------------------------------------- 1 | // +build !go1.5 2 | 3 | package metrics 4 | 5 | import "runtime" 6 | 7 | func gcCPUFraction(memStats *runtime.MemStats) float64 { 8 | return 0 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/validate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | # check there are no formatting issues 6 | GOFMT_LINES=`gofmt -l . | wc -l | xargs` 7 | test $GOFMT_LINES -eq 0 || echo "gofmt needs to be run, ${GOFMT_LINES} files have issues" 8 | 9 | # run the tests for the root package 10 | go test . 11 | -------------------------------------------------------------------------------- /vendor/github.com/rcrowley/go-metrics/writer_test.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import ( 4 | "sort" 5 | "testing" 6 | ) 7 | 8 | func TestMetricsSorting(t *testing.T) { 9 | var namedMetrics = namedMetricSlice{ 10 | {name: "zzz"}, 11 | {name: "bbb"}, 12 | {name: "fff"}, 13 | {name: "ggg"}, 14 | } 15 | 16 | sort.Sort(namedMetrics) 17 | for i, name := range []string{"bbb", "fff", "ggg", "zzz"} { 18 | if namedMetrics[i].name != name { 19 | t.Fail() 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/README.md: -------------------------------------------------------------------------------- 1 | # objx 2 | 3 | * Jump into the [API Documentation](http://godoc.org/github.com/stretchr/objx) 4 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/codegen/array-access.txt: -------------------------------------------------------------------------------- 1 | case []{1}: 2 | a := object.([]{1}) 3 | if isSet { 4 | a[index] = value.({1}) 5 | } else { 6 | if index >= len(a) { 7 | if panics { 8 | panic(fmt.Sprintf("objx: Index %d is out of range because the []{1} only contains %d items.", index, len(a))) 9 | } 10 | return nil 11 | } else { 12 | return a[index] 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/codegen/types_list.txt: -------------------------------------------------------------------------------- 1 | Interface,interface{},"something",nil,Inter 2 | Map,map[string]interface{},map[string]interface{}{"name":"Tyler"},nil,MSI 3 | ObjxMap,(Map),New(1),New(nil),ObjxMap 4 | Bool,bool,true,false,Bool 5 | String,string,"hello","",Str 6 | Int,int,1,0,Int 7 | Int8,int8,1,0,Int8 8 | Int16,int16,1,0,Int16 9 | Int32,int32,1,0,Int32 10 | Int64,int64,1,0,Int64 11 | Uint,uint,1,0,Uint 12 | Uint8,uint8,1,0,Uint8 13 | Uint16,uint16,1,0,Uint16 14 | Uint32,uint32,1,0,Uint32 15 | Uint64,uint64,1,0,Uint64 16 | Uintptr,uintptr,1,0,Uintptr 17 | Float32,float32,1,0,Float32 18 | Float64,float64,1,0,Float64 19 | Complex64,complex64,1,0,Complex64 20 | Complex128,complex128,1,0,Complex128 21 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/constants.go: -------------------------------------------------------------------------------- 1 | package objx 2 | 3 | const ( 4 | // PathSeparator is the character used to separate the elements 5 | // of the keypath. 6 | // 7 | // For example, `location.address.city` 8 | PathSeparator string = "." 9 | 10 | // SignatureSeparator is the character that is used to 11 | // separate the Base64 string from the security signature. 12 | SignatureSeparator = "_" 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/map_for_test.go: -------------------------------------------------------------------------------- 1 | package objx 2 | 3 | var TestMap map[string]interface{} = map[string]interface{}{ 4 | "name": "Tyler", 5 | "address": map[string]interface{}{ 6 | "city": "Salt Lake City", 7 | "state": "UT", 8 | }, 9 | "numbers": []interface{}{"one", "two", "three", "four", "five"}, 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/security.go: -------------------------------------------------------------------------------- 1 | package objx 2 | 3 | import ( 4 | "crypto/sha1" 5 | "encoding/hex" 6 | ) 7 | 8 | // HashWithKey hashes the specified string using the security 9 | // key. 10 | func HashWithKey(data, key string) string { 11 | hash := sha1.New() 12 | hash.Write([]byte(data + ":" + key)) 13 | return hex.EncodeToString(hash.Sum(nil)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/security_test.go: -------------------------------------------------------------------------------- 1 | package objx 2 | 3 | import ( 4 | "github.com/stretchr/testify/assert" 5 | "testing" 6 | ) 7 | 8 | func TestHashWithKey(t *testing.T) { 9 | 10 | assert.Equal(t, "0ce84d8d01f2c7b6e0882b784429c54d280ea2d9", HashWithKey("abc", "def")) 11 | 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/tests.go: -------------------------------------------------------------------------------- 1 | package objx 2 | 3 | // Has gets whether there is something at the specified selector 4 | // or not. 5 | // 6 | // If m is nil, Has will always return false. 7 | func (m Map) Has(selector string) bool { 8 | if m == nil { 9 | return false 10 | } 11 | return !m.Get(selector).IsNil() 12 | } 13 | 14 | // IsNil gets whether the data is nil or not. 15 | func (v *Value) IsNil() bool { 16 | return v == nil || v.data == nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/objx/tests_test.go: -------------------------------------------------------------------------------- 1 | package objx 2 | 3 | import ( 4 | "github.com/stretchr/testify/assert" 5 | "testing" 6 | ) 7 | 8 | func TestHas(t *testing.T) { 9 | 10 | m := New(TestMap) 11 | 12 | assert.True(t, m.Has("name")) 13 | assert.True(t, m.Has("address.state")) 14 | assert.True(t, m.Has("numbers[4]")) 15 | 16 | assert.False(t, m.Has("address.state.nope")) 17 | assert.False(t, m.Has("address.nope")) 18 | assert.False(t, m.Has("nope")) 19 | assert.False(t, m.Has("numbers[5]")) 20 | 21 | m = nil 22 | assert.False(t, m.Has("nothing")) 23 | 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | .DS_Store 25 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | sudo: false 4 | 5 | go: 6 | - 1.1 7 | - 1.2 8 | - 1.3 9 | - 1.4 10 | - 1.5 11 | - 1.6 12 | - 1.7 13 | - tip 14 | 15 | script: 16 | - go test -v ./... 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "github.com/stretchr/testify", 3 | "GoVersion": "go1.5", 4 | "GodepVersion": "v74", 5 | "Packages": [ 6 | "./..." 7 | ], 8 | "Deps": [ 9 | { 10 | "ImportPath": "github.com/davecgh/go-spew/spew", 11 | "Comment": "v1.0.0-3-g6d21280", 12 | "Rev": "6d212800a42e8ab5c146b8ace3490ee17e5225f9" 13 | }, 14 | { 15 | "ImportPath": "github.com/pmezard/go-difflib/difflib", 16 | "Rev": "d8ed2627bdf02c080bf22230dbb337003b7aba2d" 17 | }, 18 | { 19 | "ImportPath": "github.com/stretchr/objx", 20 | "Rev": "cbeaeb16a013161a98496fad62933b1d21786672" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_forward.go.tmpl 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/http/doc.go: -------------------------------------------------------------------------------- 1 | // Package http DEPRECATED USE net/http/httptest 2 | package http 3 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/http/test_round_tripper.go: -------------------------------------------------------------------------------- 1 | package http 2 | 3 | import ( 4 | "github.com/stretchr/testify/mock" 5 | "net/http" 6 | ) 7 | 8 | // TestRoundTripper DEPRECATED USE net/http/httptest 9 | type TestRoundTripper struct { 10 | mock.Mock 11 | } 12 | 13 | // RoundTrip DEPRECATED USE net/http/httptest 14 | func (t *TestRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) { 15 | args := t.Called(req) 16 | return args.Get(0).(*http.Response), args.Error(1) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/package_test.go: -------------------------------------------------------------------------------- 1 | package testify 2 | 3 | import ( 4 | "github.com/stretchr/testify/assert" 5 | "testing" 6 | ) 7 | 8 | func TestImports(t *testing.T) { 9 | if assert.Equal(t, 1, 1) != true { 10 | t.Error("Something is wrong.") 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/forward_requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate go run ../_codegen/main.go -output-package=require -template=require_forward.go.tmpl 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.Comment}} 2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { 3 | if !assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { 4 | t.FailNow() 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { 3 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // TestingT is an interface wrapper around *testing.T 4 | type TestingT interface { 5 | Errorf(format string, args ...interface{}) 6 | FailNow() 7 | } 8 | 9 | //go:generate go run ../_codegen/main.go -output-package=require -template=require.go.tmpl 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/.gitattributes: -------------------------------------------------------------------------------- 1 | # Treat all files in this repo as binary, with no git magic updating 2 | # line endings. Windows users contributing to Go will need to use a 3 | # modern version of git and editors capable of LF line endings. 4 | # 5 | # We'll prevent accidental CRLF line endings from entering the repo 6 | # via the git-review gofmt checks. 7 | # 8 | # See golang.org/issue/9281 9 | 10 | * -text 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/.gitignore: -------------------------------------------------------------------------------- 1 | # Add no patterns to .hgignore except for files generated by the build. 2 | last-change 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/README.md: -------------------------------------------------------------------------------- 1 | # sys 2 | 3 | This repository holds supplemental Go packages for low-level interactions with 4 | the operating system. 5 | 6 | ## Download/Install 7 | 8 | The easiest way to install is to run `go get -u golang.org/x/sys`. You can 9 | also manually git clone the repository to `$GOPATH/src/golang.org/x/sys`. 10 | 11 | ## Report Issues / Send Patches 12 | 13 | This repository uses Gerrit for code changes. To learn how to submit changes to 14 | this repository, see https://golang.org/doc/contribute.html. 15 | 16 | The main issue tracker for the sys repository is located at 17 | https://github.com/golang/go/issues. Prefix your issue with "x/sys:" in the 18 | subject line, so it is easy to find. 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT ·use(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/env_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Plan 9 environment variables. 6 | 7 | package plan9 8 | 9 | import ( 10 | "syscall" 11 | ) 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/env_unset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.4 6 | 7 | package plan9 8 | 9 | import "syscall" 10 | 11 | func Unsetenv(key string) error { 12 | // This was added in Go 1.4. 13 | return syscall.Unsetenv(key) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2009 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | 6 | COMMAND="mksysnum_plan9.sh $@" 7 | 8 | cat <= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, Darwin 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, Darwin 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | // +build arm,darwin 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for ARM, Darwin 12 | // 13 | 14 | // Just jump to package syscall's implementation for all these functions. 15 | // The runtime may know about them. 16 | 17 | TEXT ·Syscall(SB),NOSPLIT,$0-28 18 | B syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 21 | B syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 24 | B syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 27 | B syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 30 | B syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_darwin_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | // +build arm64,darwin 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for AMD64, Darwin 12 | // 13 | 14 | // Just jump to package syscall's implementation for all these functions. 15 | // The runtime may know about them. 16 | 17 | TEXT ·Syscall(SB),NOSPLIT,$0-56 18 | B syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 21 | B syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 24 | B syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 27 | B syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 30 | B syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, DragonFly 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-64 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-88 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-112 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-64 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-88 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_freebsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, FreeBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for AMD64, Linux 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 23 | JMP syscall·RawSyscall(SB) 24 | 25 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 26 | JMP syscall·RawSyscall6(SB) 27 | 28 | TEXT ·gettimeofday(SB),NOSPLIT,$0-16 29 | JMP syscall·gettimeofday(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for arm, Linux 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 23 | B syscall·RawSyscall(SB) 24 | 25 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 26 | B syscall·RawSyscall6(SB) 27 | 28 | TEXT ·seek(SB),NOSPLIT,$0-32 29 | B syscall·seek(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build arm64 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | B syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | B syscall·Syscall6(SB) 19 | 20 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 21 | B syscall·RawSyscall(SB) 22 | 23 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 24 | B syscall·RawSyscall6(SB) 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_mips64x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build mips64 mips64le 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for mips64, Linux 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·Syscall(SB),NOSPLIT,$0-56 19 | JMP syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | JMP syscall·Syscall6(SB) 23 | 24 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 25 | JMP syscall·RawSyscall(SB) 26 | 27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 28 | JMP syscall·RawSyscall6(SB) 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux 6 | // +build ppc64 ppc64le 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for ppc64, Linux 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·Syscall(SB),NOSPLIT,$0-56 19 | BR syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | BR syscall·Syscall6(SB) 23 | 24 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 25 | BR syscall·RawSyscall(SB) 26 | 27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 28 | BR syscall·RawSyscall6(SB) 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_linux_s390x.s: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build s390x 6 | // +build linux 7 | // +build !gccgo 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System calls for s390x, Linux 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·Syscall(SB),NOSPLIT,$0-56 19 | BR syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | BR syscall·Syscall6(SB) 23 | 24 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 25 | BR syscall·RawSyscall(SB) 26 | 27 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 28 | BR syscall·RawSyscall6(SB) 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_netbsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, NetBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for 386, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for AMD64, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ARM, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !gccgo 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/bluetooth_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Bluetooth sockets and messages 6 | 7 | package unix 8 | 9 | // Bluetooth Protocols 10 | const ( 11 | BTPROTO_L2CAP = 0 12 | BTPROTO_HCI = 1 13 | BTPROTO_SCO = 2 14 | BTPROTO_RFCOMM = 3 15 | BTPROTO_BNEP = 4 16 | BTPROTO_CMTP = 5 17 | BTPROTO_HIDP = 6 18 | BTPROTO_AVDTP = 7 19 | ) 20 | 21 | const ( 22 | HCI_CHANNEL_RAW = 0 23 | HCI_CHANNEL_USER = 1 24 | HCI_CHANNEL_MONITOR = 2 25 | HCI_CHANNEL_CONTROL = 3 26 | ) 27 | 28 | // Socketoption Level 29 | const ( 30 | SOL_BLUETOOTH = 0x112 31 | SOL_HCI = 0x0 32 | SOL_L2CAP = 0x6 33 | SOL_RFCOMM = 0x12 34 | SOL_SCO = 0x11 35 | ) 36 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build ppc64 s390x mips mips64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build 386 amd64 amd64p32 arm arm64 ppc64le mipsle mips64le 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.4 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Unsetenv(key string) error { 12 | // This was added in Go 1.4. 13 | return syscall.Unsetenv(key) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | var Itoa = itoa 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/file_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | import ( 8 | "os" 9 | "syscall" 10 | ) 11 | 12 | // FIXME: unexported function from os 13 | // syscallMode returns the syscall-specific mode bits from Go's portable mode bits. 14 | func syscallMode(i os.FileMode) (o uint32) { 15 | o |= uint32(i.Perm()) 16 | if i&os.ModeSetuid != 0 { 17 | o |= syscall.S_ISUID 18 | } 19 | if i&os.ModeSetgid != 0 { 20 | o |= syscall.S_ISGID 21 | } 22 | if i&os.ModeSticky != 0 { 23 | o |= syscall.S_ISVTX 24 | } 25 | // No mapping for Go's ModeTemporary (plan9 only). 26 | return 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/flock.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd 6 | 7 | package unix 8 | 9 | import "unsafe" 10 | 11 | // fcntl64Syscall is usually SYS_FCNTL, but is overridden on 32-bit Linux 12 | // systems by flock_linux_32bit.go to be SYS_FCNTL64. 13 | var fcntl64Syscall uintptr = SYS_FCNTL 14 | 15 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 16 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 17 | _, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk))) 18 | if errno == 0 { 19 | return nil 20 | } 21 | return errno 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/flock_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // +build linux,386 linux,arm linux,mips linux,mipsle 2 | 3 | // Copyright 2014 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,race linux,race freebsd,race 6 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + uitoa(uint(-val)) 12 | } 13 | return uitoa(uint(val)) 14 | } 15 | 16 | func uitoa(val uint) string { 17 | var buf [32]byte // big enough for int64 18 | i := len(buf) - 1 19 | for val >= 10 { 20 | buf[i] = byte(val%10 + '0') 21 | i-- 22 | val /= 10 23 | } 24 | buf[i] = byte(val + '0') 25 | return string(buf[i:]) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,linux 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_no_getwd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build dragonfly freebsd netbsd openbsd 6 | 7 | package unix 8 | 9 | const ImplementsGetwd = false 10 | 11 | func Getwd() (string, error) { return "", ENOTSUP } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build !gccgo 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsysnum_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,solaris 6 | 7 | package unix 8 | 9 | // TODO(aram): remove these before Go 1.3. 10 | const ( 11 | SYS_EXECVE = 59 12 | SYS_FCNTL = 62 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/asm_windows_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // 6 | // System calls for 386, Windows are implemented in runtime/syscall_windows.goc 7 | // 8 | 9 | TEXT ·getprocaddress(SB), 7, $0-8 10 | JMP syscall·getprocaddress(SB) 11 | 12 | TEXT ·loadlibrary(SB), 7, $0-4 13 | JMP syscall·loadlibrary(SB) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/asm_windows_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // 6 | // System calls for amd64, Windows are implemented in runtime/syscall_windows.goc 7 | // 8 | 9 | TEXT ·getprocaddress(SB), 7, $0-32 10 | JMP syscall·getprocaddress(SB) 11 | 12 | TEXT ·loadlibrary(SB), 7, $0-8 13 | JMP syscall·loadlibrary(SB) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/env_unset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build go1.4 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | func Unsetenv(key string) error { 13 | // This was added in Go 1.4. 14 | return syscall.Unsetenv(key) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/env_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Windows environment variables. 6 | 7 | package windows 8 | 9 | import "syscall" 10 | 11 | func Getenv(key string) (value string, found bool) { 12 | return syscall.Getenv(key) 13 | } 14 | 15 | func Setenv(key, value string) error { 16 | return syscall.Setenv(key, value) 17 | } 18 | 19 | func Clearenv() { 20 | syscall.Clearenv() 21 | } 22 | 23 | func Environ() []string { 24 | return syscall.Environ() 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows,race 6 | 7 | package windows 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows,!race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/registry/export_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | 7 | package registry 8 | 9 | func (k Key) SetValue(name string, valtype uint32, data []byte) error { 10 | return k.setValue(name, valtype, data) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/registry/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package registry 6 | 7 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go syscall.go 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/svc/example/beep.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | 7 | package main 8 | 9 | import ( 10 | "syscall" 11 | ) 12 | 13 | // BUG(brainman): MessageBeep Windows api is broken on Windows 7, 14 | // so this example does not beep when runs as service on Windows 7. 15 | 16 | var ( 17 | beepFunc = syscall.MustLoadDLL("user32.dll").MustFindProc("MessageBeep") 18 | ) 19 | 20 | func beep() { 21 | beepFunc.Call(0xffffffff) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/svc/go12.c: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build !go1.3 7 | 8 | // copied from pkg/runtime 9 | typedef unsigned int uint32; 10 | typedef unsigned long long int uint64; 11 | #ifdef _64BIT 12 | typedef uint64 uintptr; 13 | #else 14 | typedef uint32 uintptr; 15 | #endif 16 | 17 | // from sys_386.s or sys_amd64.s 18 | void ·servicemain(void); 19 | 20 | void 21 | ·getServiceMain(uintptr *r) 22 | { 23 | *r = (uintptr)·servicemain; 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/svc/go12.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build !go1.3 7 | 8 | package svc 9 | 10 | // from go12.c 11 | func getServiceMain(r *uintptr) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | Description [WSADESCRIPTION_LEN + 1]byte 11 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 12 | MaxSockets uint16 13 | MaxUdpDg uint16 14 | VendorInfo *byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Port uint16 21 | Proto *byte 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | -------------------------------------------------------------------------------- /vendor/gopkg.in/karalabe/cookiejar.v2/geometry/geometry.go: -------------------------------------------------------------------------------- 1 | // CookieJar - A contestant's algorithm toolbox 2 | // Copyright (c) 2013 Peter Szilagyi. All rights reserved. 3 | // 4 | // CookieJar is dual licensed: use of this source code is governed by a BSD 5 | // license that can be found in the LICENSE file. Alternatively, the CookieJar 6 | // toolbox may be used in accordance with the terms and conditions contained 7 | // in a signed written agreement between you and the author(s). 8 | 9 | // Package geometry implements basic geometric types and operations on them. 10 | package geometry 11 | 12 | // Epsilon value for float equality comparison. 13 | var eps = float64(1e-9) 14 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4 5 | - 1.5 6 | - 1.6 7 | - tip 8 | 9 | go_import_path: gopkg.in/yaml.v2 10 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/suite_test.go: -------------------------------------------------------------------------------- 1 | package yaml_test 2 | 3 | import ( 4 | . "gopkg.in/check.v1" 5 | "testing" 6 | ) 7 | 8 | func Test(t *testing.T) { TestingT(t) } 9 | 10 | type S struct{} 11 | 12 | var _ = Suite(&S{}) 13 | --------------------------------------------------------------------------------