repo_id
stringlengths
21
96
file_path
stringlengths
31
155
content
stringlengths
1
92.9M
__index_level_0__
int64
0
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cast/Makefile
GOVERSION := $(shell go version | cut -d ' ' -f 3 | cut -d '.' -f 2) .PHONY: check fmt lint test test-race vet test-cover-html help .DEFAULT_GOAL := help check: test-race fmt vet lint ## Run tests and linters test: ## Run tests go test ./... test-race: ## Run tests with race detector go test -race ./... fmt: ## ...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cast/cast.go
// Copyright © 2014 Steve Francia <spf@spf13.com>. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. // Package cast provides easy and safe casting in Go. package cast import "time" // ToBool casts an interface to a bool type. func ToBool(i interface{}) bool ...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cast/LICENSE
The MIT License (MIT) Copyright (c) 2014 Steve Francia Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/jwalterweatherman/notepad.go
// Copyright © 2016 Steve Francia <spf@spf13.com>. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. package jwalterweatherman import ( "fmt" "io" "io/ioutil" "log" ) type Threshold int func (t Threshold) String() string { return prefixes[t] } const ( ...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/jwalterweatherman/README.md
jWalterWeatherman ================= Seamless printing to the terminal (stdout) and logging to a io.Writer (file) that’s as easy to use as fmt.Println. ![and_that__s_why_you_always_leave_a_note_by_jonnyetc-d57q7um](https://cloud.githubusercontent.com/assets/173412/11002937/ccd01654-847d-11e5-828e-12ebaf582eaf.jpg) Gra...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/jwalterweatherman/log_counter.go
// Copyright © 2016 Steve Francia <spf@spf13.com>. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. package jwalterweatherman import ( "io" "sync/atomic" ) // Counter is an io.Writer that increments a counter on Write. type Counter struct { count uint64 }...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/jwalterweatherman/LICENSE
The MIT License (MIT) Copyright (c) 2014 Steve Francia Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/jwalterweatherman/default_notepad.go
// Copyright © 2016 Steve Francia <spf@spf13.com>. // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file. package jwalterweatherman import ( "io" "io/ioutil" "log" "os" ) var ( TRACE *log.Logger DEBUG *log.Logger INFO *log.Logger WARN *log.Lo...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/command.go
// Copyright © 2013 Steve Francia <spf@spf13.com>. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/shell_completions.md
# Generating shell completions Cobra can generate shell completions for multiple shells. The currently supported shells are: - Bash - Zsh - fish - PowerShell Cobra will automatically provide your program with a fully functional `completion` command, similarly to how it provides the `help` command. ## Creating your o...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/args.go
package cobra import ( "fmt" "strings" ) type PositionalArgs func(cmd *Command, args []string) error // Legacy arg validation has the following behaviour: // - root commands with no subcommands can take arbitrary arguments // - root commands with subcommands will do subcommand validity checking // - subcommands wi...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/.mailmap
Steve Francia <steve.francia@gmail.com> Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> Fabiano Franz <ffranz@redhat.com> <contact@fabianofranz.com>
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/completions.go
package cobra import ( "fmt" "os" "strings" "sync" "github.com/spf13/pflag" ) const ( // ShellCompRequestCmd is the name of the hidden command that is used to request // completion results from the program. It is used by the shell completion scripts. ShellCompRequestCmd = "__complete" // ShellCompNoDescReq...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/zsh_completions.md
## Generating Zsh Completion For Your cobra.Command Please refer to [Shell Completions](shell_completions.md) for details. ## Zsh completions standardization Cobra 1.1 standardized its zsh completion support to align it with its other shell completions. Although the API was kept backwards-compatible, some small cha...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/fish_completions.md
## Generating Fish Completions For Your cobra.Command Please refer to [Shell Completions](shell_completions.md) for details.
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/README.md
![cobra logo](https://cloud.githubusercontent.com/assets/173412/10886352/ad566232-814f-11e5-9cd0-aa101788c117.png) Cobra is both a library for creating powerful modern CLI applications as well as a program to generate applications and command files. Cobra is used in many Go projects such as [Kubernetes](http://kubern...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/projects_using_cobra.md
## Projects using Cobra - [Arduino CLI](https://github.com/arduino/arduino-cli) - [Bleve](http://www.blevesearch.com/) - [CockroachDB](http://www.cockroachlabs.com/) - [Cosmos SDK](https://github.com/cosmos/cosmos-sdk) - [Datree](https://github.com/datreeio/datree) - [Delve](https://github.com/derekparker/delve) - [Do...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/CHANGELOG.md
# Cobra Changelog ## v1.1.3 * **Fix:** release-branch.cobra1.1 only: Revert "Deprecate Go < 1.14" to maintain backward compatibility ## v1.1.2 ### Notable Changes * Bump license year to 2021 in golden files (#1309) @Bowbaq * Enhance PowerShell completion with custom comp (#1208) @Luap99 * Update gopkg.in/yaml.v2 t...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/shell_completions.go
package cobra import ( "github.com/spf13/pflag" ) // MarkFlagRequired instructs the various shell completion implementations to // prioritize the named flag when performing completion, // and causes your command to report an error if invoked without the flag. func (c *Command) MarkFlagRequired(name string) error { ...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/fish_completions.go
package cobra import ( "bytes" "fmt" "io" "os" "strings" ) func genFishComp(buf io.StringWriter, name string, includeDesc bool) { // Variables should not contain a '-' or ':' character nameForVar := name nameForVar = strings.Replace(nameForVar, "-", "_", -1) nameForVar = strings.Replace(nameForVar, ":", "_",...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/zsh_completions.go
package cobra import ( "bytes" "fmt" "io" "os" ) // GenZshCompletionFile generates zsh completion file including descriptions. func (c *Command) GenZshCompletionFile(filename string) error { return c.genZshCompletionFile(filename, true) } // GenZshCompletion generates zsh completion file including descriptions ...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/command_notwin.go
//go:build !windows // +build !windows package cobra var preExecHookFn func(*Command)
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/.golangci.yml
run: deadline: 5m linters: disable-all: true enable: #- bodyclose - deadcode #- depguard #- dogsled #- dupl - errcheck #- exhaustive #- funlen - gas #- gochecknoinits - goconst #- gocritic #- gocyclo #- gofmt - goimports - golint #- gomnd #-...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/Makefile
BIN="./bin" SRC=$(shell find . -name "*.go") ifeq (, $(shell which golangci-lint)) $(warning "could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh") endif ifeq (, $(shell which richgo)) $(warning "could not find richgo in $(PATH), run: go get...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/powershell_completions.go
// The generated scripts require PowerShell v5.0+ (which comes Windows 10, but // can be downloaded separately for windows 7 or 8.1). package cobra import ( "bytes" "fmt" "io" "os" ) func genPowerShellComp(buf io.StringWriter, name string, includeDesc bool) { compCmd := ShellCompRequestCmd if !includeDesc { ...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/LICENSE.txt
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/command_win.go
//go:build windows // +build windows package cobra import ( "fmt" "os" "time" "github.com/inconshreveable/mousetrap" ) var preExecHookFn = preExecHook func preExecHook(c *Command) { if MousetrapHelpText != "" && mousetrap.StartedByExplorer() { c.Print(MousetrapHelpText) if MousetrapDisplayDuration > 0 { ...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/cobra.go
// Copyright © 2013 Steve Francia <spf@spf13.com>. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/user_guide.md
# User Guide While you are welcome to provide your own organization, typically a Cobra-based application will follow the following organizational structure: ``` ▾ appName/ ▾ cmd/ add.go your.go commands.go here.go main.go ``` In a Cobra app, typically the main.go file is v...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/bash_completions.go
package cobra import ( "bytes" "fmt" "io" "os" "sort" "strings" "github.com/spf13/pflag" ) // Annotations for Bash completion. const ( BashCompFilenameExt = "cobra_annotation_bash_completion_filename_extensions" BashCompCustom = "cobra_annotation_bash_completion_custom" BashCompOneRequiredFlag...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/CONTRIBUTING.md
# Contributing to Cobra Thank you so much for contributing to Cobra. We appreciate your time and help. Here are some guidelines to help you get started. ## Code of Conduct Be kind and respectful to the members of the community. Take time to educate others who are seeking help. Harassment of any kind will not be tole...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/bash_completions.md
# Generating Bash Completions For Your cobra.Command Please refer to [Shell Completions](shell_completions.md) for details. ## Bash legacy dynamic completions For backward compatibility, Cobra still supports its legacy dynamic completion solution (described below). Unlike the `ValidArgsFunction` solution, the legac...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/bash_completionsV2.go
package cobra import ( "bytes" "fmt" "io" "os" ) func (c *Command) genBashCompletion(w io.Writer, includeDesc bool) error { buf := new(bytes.Buffer) genBashComp(buf, c.Name(), includeDesc) _, err := buf.WriteTo(w) return err } func genBashComp(buf io.StringWriter, name string, includeDesc bool) { compCmd :=...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/CONDUCT.md
## Cobra User Contract ### Versioning Cobra will follow a steady release cadence. Non breaking changes will be released as minor versions quarterly. Patch bug releases are at the discretion of the maintainers. Users can expect security patch fixes to be released within relatively short order of a CVE becoming known. F...
0
rapidsai_public_repos/roc/vendor/github.com/spf13
rapidsai_public_repos/roc/vendor/github.com/spf13/cobra/powershell_completions.md
# Generating PowerShell Completions For Your Own cobra.Command Please refer to [Shell Completions](shell_completions.md#powershell-completions) for details.
0
rapidsai_public_repos/roc/vendor/github.com/subosito
rapidsai_public_repos/roc/vendor/github.com/subosito/gotenv/.env
HELLO=world
0
rapidsai_public_repos/roc/vendor/github.com/subosito
rapidsai_public_repos/roc/vendor/github.com/subosito/gotenv/.env.invalid
lol$wut
0
rapidsai_public_repos/roc/vendor/github.com/subosito
rapidsai_public_repos/roc/vendor/github.com/subosito/gotenv/README.md
# gotenv [![Build Status](https://travis-ci.org/subosito/gotenv.svg?branch=master)](https://travis-ci.org/subosito/gotenv) [![Build status](https://ci.appveyor.com/api/projects/status/wb2e075xkfl0m0v2/branch/master?svg=true)](https://ci.appveyor.com/project/subosito/gotenv/branch/master) [![Coverage Status](https://ba...
0
rapidsai_public_repos/roc/vendor/github.com/subosito
rapidsai_public_repos/roc/vendor/github.com/subosito/gotenv/CHANGELOG.md
# Changelog ## [1.2.0] - 2019-08-03 ### Added - Add `Must` helper to raise an error as panic. It can be used with `Load` and `OverLoad`. - Add more tests to be 100% coverage. - Add CHANGELOG - Add more OS for the test: OSX and Windows ### Changed - Reduce complexity and improve source code for having `A+` score in...
0
rapidsai_public_repos/roc/vendor/github.com/subosito
rapidsai_public_repos/roc/vendor/github.com/subosito/gotenv/gotenv.go
// Package gotenv provides functionality to dynamically load the environment variables package gotenv import ( "bufio" "fmt" "io" "os" "regexp" "strings" ) const ( // Pattern for detecting valid line format linePattern = `\A\s*(?:export\s+)?([\w\.]+)(?:\s*=\s*|:\s+?)('(?:\'|[^'])*'|"(?:\"|[^"])*"|[^#\n]+)?\s*...
0
rapidsai_public_repos/roc/vendor/github.com/subosito
rapidsai_public_repos/roc/vendor/github.com/subosito/gotenv/.travis.yml
language: go go: - 1.x os: - linux - osx script: - go test -test.v -coverprofile=coverage.out -covermode=count after_success: - bash <(curl -s https://codecov.io/bash)
0
rapidsai_public_repos/roc/vendor/github.com/subosito
rapidsai_public_repos/roc/vendor/github.com/subosito/gotenv/appveyor.yml
build: off clone_folder: c:\gopath\src\github.com\subosito\gotenv environment: GOPATH: c:\gopath stack: go 1.10 before_test: - go get -t test_script: - go test -v -cover -race
0
rapidsai_public_repos/roc/vendor/github.com/subosito
rapidsai_public_repos/roc/vendor/github.com/subosito/gotenv/LICENSE
The MIT License (MIT) Copyright (c) 2013 Alif Rachmawadi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/LICENSE
MIT License Copyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, ...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/require/requirements.go
package require // TestingT is an interface wrapper around *testing.T type TestingT interface { Errorf(format string, args ...interface{}) FailNow() } type tHelper interface { Helper() } // ComparisonAssertionFunc is a common function prototype when comparing two values. Can be useful // for table driven tests. ...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/require/require_forward.go
/* * CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen * THIS FILE MUST NOT BE EDITED BY HAND */ package require import ( assert "github.com/stretchr/testify/assert" http "net/http" url "net/url" time "time" ) // Condition uses a Comparison to assert a complex condition. func (a *Assertions...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/require/forward_requirements.go
package require // Assertions provides assertion methods around the // TestingT interface. type Assertions struct { t TestingT } // New makes a new Assertions object for the specified TestingT. func New(t TestingT) *Assertions { return &Assertions{ t: t, } } //go:generate sh -c "cd ../_codegen && go build && cd...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/require/require.go.tmpl
{{.Comment}} func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { if h, ok := t.(tHelper); ok { h.Helper() } if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return } t.FailNow() }
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/require/doc.go
// Package require implements the same assertions as the `assert` package but // stops test execution when a test fails. // // Example Usage // // The following is a complete example using require in a standard test function: // import ( // "testing" // "github.com/stretchr/testify/require" // ) // // ...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/require/require_forward.go.tmpl
{{.CommentWithoutT "a"}} func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { if h, ok := a.t.(tHelper); ok { h.Helper() } {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) }
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/require/require.go
/* * CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen * THIS FILE MUST NOT BE EDITED BY HAND */ package require import ( assert "github.com/stretchr/testify/assert" http "net/http" url "net/url" time "time" ) // Condition uses a Comparison to assert a complex condition. func Condition(t Te...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/assert/errors.go
package assert import ( "errors" ) // AnError is an error instance useful for testing. If the code does not care // about error specifics, and only needs to return the error for example, this // error should be used to make the test code more readable. var AnError = errors.New("assert.AnError general error for test...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/assert/assertion_forward.go
/* * CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen * THIS FILE MUST NOT BE EDITED BY HAND */ package assert import ( http "net/http" url "net/url" time "time" ) // Condition uses a Comparison to assert a complex condition. func (a *Assertions) Condition(comp Comparison, msgAndArgs ...int...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl
{{.CommentWithoutT "a"}} func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { if h, ok := a.t.(tHelper); ok { h.Helper() } return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) }
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/assert/forward_assertions.go
package assert // Assertions provides assertion methods around the // TestingT interface. type Assertions struct { t TestingT } // New makes a new Assertions object for the specified TestingT. func New(t TestingT) *Assertions { return &Assertions{ t: t, } } //go:generate sh -c "cd ../_codegen && go build && cd ...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl
{{.CommentFormat}} func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { if h, ok := t.(tHelper); ok { h.Helper() } return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) }
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/assert/assertion_format.go
/* * CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen * THIS FILE MUST NOT BE EDITED BY HAND */ package assert import ( http "net/http" url "net/url" time "time" ) // Conditionf uses a Comparison to assert a complex condition. func Conditionf(t TestingT, comp Comparison, msg string, args .....
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/assert/assertion_compare.go
package assert import ( "fmt" "reflect" ) type CompareType int const ( compareLess CompareType = iota - 1 compareEqual compareGreater ) var ( intType = reflect.TypeOf(int(1)) int8Type = reflect.TypeOf(int8(1)) int16Type = reflect.TypeOf(int16(1)) int32Type = reflect.TypeOf(int32(1)) int64Type = reflect...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/assert/assertions.go
package assert import ( "bufio" "bytes" "encoding/json" "errors" "fmt" "math" "os" "reflect" "regexp" "runtime" "runtime/debug" "strings" "time" "unicode" "unicode/utf8" "github.com/davecgh/go-spew/spew" "github.com/pmezard/go-difflib/difflib" yaml "gopkg.in/yaml.v3" ) //go:generate sh -c "cd ../_c...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/assert/doc.go
// Package assert provides a set of comprehensive testing tools for use with the normal Go testing system. // // Example Usage // // The following is a complete example using assert in a standard test function: // import ( // "testing" // "github.com/stretchr/testify/assert" // ) // // func TestSomet...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/assert/assertion_order.go
package assert import ( "fmt" "reflect" ) // isOrdered checks that collection contains orderable elements. func isOrdered(t TestingT, object interface{}, allowedComparesResults []CompareType, failMessage string, msgAndArgs ...interface{}) bool { objKind := reflect.TypeOf(object).Kind() if objKind != reflect.Slice...
0
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify
rapidsai_public_repos/roc/vendor/github.com/stretchr/testify/assert/http_assertions.go
package assert import ( "fmt" "net/http" "net/http/httptest" "net/url" "strings" ) // httpCode is a helper that returns HTTP code of the response. It returns -1 and // an error if building a new request fails. func httpCode(handler http.HandlerFunc, method, url string, values url.Values) (int, error) { w := htt...
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/oauth/oauth_webapp.go
package oauth import ( "fmt" "net/http" "github.com/cli/browser" "github.com/cli/oauth/api" "github.com/cli/oauth/webapp" ) // WebAppFlow starts a local HTTP server, opens the web browser to initiate the OAuth Web application // flow, blocks until the user completes authorization and is redirected back, and ret...
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/oauth/README.md
# oauth A library for Go client applications that need to perform OAuth authorization against a server, typically GitHub.com. <p align="center"> <img width="598" alt="" src="https://user-images.githubusercontent.com/887/102650961-f2751e80-416b-11eb-8b37-d82b076eb2d1.png"><br> <img width="976" alt="" src="https://...
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/oauth/oauth_device.go
package oauth import ( "bufio" "fmt" "io" "net/http" "os" "github.com/cli/browser" "github.com/cli/oauth/api" "github.com/cli/oauth/device" ) // DeviceFlow captures the full OAuth Device flow, including prompting the user to copy a one-time // code and opening their web browser, and returns an access token u...
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/oauth/.golangci.yml
linters: enable: - gofmt - godot - golint linters-settings: godot: # comments to be checked: `declarations`, `toplevel`, or `all` scope: declarations # check that each sentence starts with a capital letter capital: true issues: exclude-use-default: false
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/oauth/oauth.go
// Package oauth is a library for Go client applications that need to perform OAuth authorization // against a server, typically GitHub.com. package oauth import ( "errors" "fmt" "io" "net/http" "net/url" "github.com/cli/oauth/api" "github.com/cli/oauth/device" ) type httpClient interface { PostForm(string, ...
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/oauth/LICENSE
MIT License Copyright (c) 2020 GitHub, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist...
0
rapidsai_public_repos/roc/vendor/github.com/cli/oauth
rapidsai_public_repos/roc/vendor/github.com/cli/oauth/api/form.go
package api import ( "encoding/json" "fmt" "io" "io/ioutil" "mime" "net/http" "net/url" "strconv" ) type httpClient interface { PostForm(string, url.Values) (*http.Response, error) } // FormResponse is the parsed "www-form-urlencoded" response from the server. type FormResponse struct { StatusCode int re...
0
rapidsai_public_repos/roc/vendor/github.com/cli/oauth
rapidsai_public_repos/roc/vendor/github.com/cli/oauth/api/access_token.go
package api // AccessToken is an OAuth access token. type AccessToken struct { // The token value, typically a 40-character random string. Token string // The refresh token value, associated with the access token. RefreshToken string // The token type, e.g. "bearer". Type string // Space-separated list of OAuth...
0
rapidsai_public_repos/roc/vendor/github.com/cli/oauth
rapidsai_public_repos/roc/vendor/github.com/cli/oauth/device/device_flow.go
// Package device facilitates performing OAuth Device Authorization Flow for client applications // such as CLIs that can not receive redirects from a web site. // // First, RequestCode should be used to obtain a CodeResponse. // // Next, the user will need to navigate to VerificationURI in their web browser on any dev...
0
rapidsai_public_repos/roc/vendor/github.com/cli/oauth
rapidsai_public_repos/roc/vendor/github.com/cli/oauth/webapp/local_server.go
package webapp import ( "fmt" "io" "net" "net/http" ) // CodeResponse represents the code received by the local server's callback handler. type CodeResponse struct { Code string State string } // bindLocalServer initializes a LocalServer that will listen on a randomly available TCP port. func bindLocalServer(...
0
rapidsai_public_repos/roc/vendor/github.com/cli/oauth
rapidsai_public_repos/roc/vendor/github.com/cli/oauth/webapp/webapp_flow.go
// Package webapp implements the OAuth Web Application authorization flow for client applications by // starting a server at localhost to receive the web redirect after the user has authorized the application. package webapp import ( "crypto/rand" "encoding/hex" "errors" "fmt" "io" "net/http" "net/url" "string...
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/browser/browser_unsupported.go
// +build !linux,!windows,!darwin,!openbsd,!freebsd package browser import ( "fmt" "os/exec" "runtime" ) func openBrowser(url string) error { return fmt.Errorf("openBrowser: unsupported operating system: %v", runtime.GOOS) } func setFlags(cmd *exec.Cmd) {}
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/browser/zbrowser_windows.go
// Code generated by 'go generate'; DO NOT EDIT. package browser import ( "syscall" "unsafe" "golang.org/x/sys/windows" ) var _ unsafe.Pointer // Do the interface allocations only once for common // Errno values. const ( errnoERROR_IO_PENDING = 997 ) var ( errERROR_IO_PENDING error = syscall.Errno(errnoERROR...
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/browser/browser_linux.go
package browser import ( "os/exec" "strings" ) func openBrowser(url string) error { providers := []string{"xdg-open", "x-www-browser", "www-browser", "wslview"} // There are multiple possible providers to open a browser on linux // One of them is xdg-open, another is x-www-browser, then there's www-browser, etc...
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/browser/README.md
# browser Helpers to open URLs, readers, or files in the system default web browser. This fork adds: - `OpenReader` error wrapping; - `ErrNotFound` error wrapping on BSD; - Go 1.13 support. ## Usage ``` go import "github.com/cli/browser" err = browser.OpenURL(url) err = browser.OpenFile(path) err = browser.OpenR...
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/browser/browser_darwin.go
package browser import "os/exec" func openBrowser(url string) error { return runCmd("open", url) } func setFlags(cmd *exec.Cmd) {}
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/browser/browser_openbsd.go
package browser import ( "errors" "fmt" "os/exec" ) func openBrowser(url string) error { err := runCmd("xdg-open", url) if errors.Is(err, exec.ErrNotFound) { return fmt.Errorf("%w - install xdg-utils from ports(8)", err) } return err } func setFlags(cmd *exec.Cmd) {}
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/browser/browser.go
// Package browser provides helpers to open files, readers, and urls in a browser window. // // The choice of which browser is started is entirely client dependant. package browser import ( "fmt" "io" "io/ioutil" "os" "os/exec" "path/filepath" ) // Stdout is the io.Writer to which executed commands write standa...
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/browser/browser_windows.go
//go:generate mkwinsyscall -output zbrowser_windows.go browser_windows.go //sys shellExecute(hwnd int, verb string, file string, args string, cwd string, showCmd int) (err error) = shell32.ShellExecuteW package browser import "os/exec" const sW_SHOWNORMAL = 1 func openBrowser(url string) error { return shellExecute...
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/browser/browser_freebsd.go
package browser import ( "errors" "fmt" "os/exec" ) func openBrowser(url string) error { err := runCmd("xdg-open", url) if errors.Is(err, exec.ErrNotFound) { return fmt.Errorf("%w - install xdg-utils from ports(8)", err) } return err } func setFlags(cmd *exec.Cmd) {}
0
rapidsai_public_repos/roc/vendor/github.com/cli
rapidsai_public_repos/roc/vendor/github.com/cli/browser/LICENSE
Copyright (c) 2014, Dave Cheney <dave@cheney.net> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and t...
0
rapidsai_public_repos/roc/vendor/github.com/mitchellh
rapidsai_public_repos/roc/vendor/github.com/mitchellh/go-homedir/README.md
# go-homedir This is a Go library for detecting the user's home directory without the use of cgo, so the library can be used in cross-compilation environments. Usage is incredibly simple, just call `homedir.Dir()` to get the home directory for a user, and `homedir.Expand()` to expand the `~` in a path to the home dir...
0
rapidsai_public_repos/roc/vendor/github.com/mitchellh
rapidsai_public_repos/roc/vendor/github.com/mitchellh/go-homedir/LICENSE
The MIT License (MIT) Copyright (c) 2013 Mitchell Hashimoto Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
0
rapidsai_public_repos/roc/vendor/github.com/mitchellh
rapidsai_public_repos/roc/vendor/github.com/mitchellh/go-homedir/homedir.go
package homedir import ( "bytes" "errors" "os" "os/exec" "path/filepath" "runtime" "strconv" "strings" "sync" ) // DisableCache will disable caching of the home directory. Caching is enabled // by default. var DisableCache bool var homedirCache string var cacheLock sync.RWMutex // Dir returns the home dire...
0
rapidsai_public_repos/roc/vendor/github.com/mitchellh
rapidsai_public_repos/roc/vendor/github.com/mitchellh/mapstructure/error.go
package mapstructure import ( "errors" "fmt" "sort" "strings" ) // Error implements the error interface and can represents multiple // errors that occur in the course of a single decode. type Error struct { Errors []string } func (e *Error) Error() string { points := make([]string, len(e.Errors)) for i, err :...
0
rapidsai_public_repos/roc/vendor/github.com/mitchellh
rapidsai_public_repos/roc/vendor/github.com/mitchellh/mapstructure/mapstructure.go
// Package mapstructure exposes functionality to convert one arbitrary // Go type into another, typically to convert a map[string]interface{} // into a native Go structure. // // The Go structure can be arbitrarily complex, containing slices, // other structs, etc. and the decoder will properly decode nested // maps an...
0
rapidsai_public_repos/roc/vendor/github.com/mitchellh
rapidsai_public_repos/roc/vendor/github.com/mitchellh/mapstructure/README.md
# mapstructure [![Godoc](https://godoc.org/github.com/mitchellh/mapstructure?status.svg)](https://godoc.org/github.com/mitchellh/mapstructure) mapstructure is a Go library for decoding generic map values to structures and vice versa, while providing helpful error handling. This library is most useful when decoding va...
0
rapidsai_public_repos/roc/vendor/github.com/mitchellh
rapidsai_public_repos/roc/vendor/github.com/mitchellh/mapstructure/CHANGELOG.md
## 1.4.3 * Fix cases where `json.Number` didn't decode properly [GH-261] ## 1.4.2 * Custom name matchers to support any sort of casing, formatting, etc. for field names. [GH-250] * Fix possible panic in ComposeDecodeHookFunc [GH-251] ## 1.4.1 * Fix regression where `*time.Time` value would be set to empty and no...
0
rapidsai_public_repos/roc/vendor/github.com/mitchellh
rapidsai_public_repos/roc/vendor/github.com/mitchellh/mapstructure/decode_hooks.go
package mapstructure import ( "encoding" "errors" "fmt" "net" "reflect" "strconv" "strings" "time" ) // typedDecodeHook takes a raw DecodeHookFunc (an interface{}) and turns // it into the proper DecodeHookFunc type, such as DecodeHookFuncType. func typedDecodeHook(h DecodeHookFunc) DecodeHookFunc { // Creat...
0
rapidsai_public_repos/roc/vendor/github.com/mitchellh
rapidsai_public_repos/roc/vendor/github.com/mitchellh/mapstructure/LICENSE
The MIT License (MIT) Copyright (c) 2013 Mitchell Hashimoto Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
0
rapidsai_public_repos/roc/vendor/github.com/fsnotify
rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/kqueue.go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build freebsd || openbsd || netbsd || dragonfly || darwin // +build freebsd openbsd netbsd dragonfly darwin package fsnotify import ( "errors" "fmt" "...
0
rapidsai_public_repos/roc/vendor/github.com/fsnotify
rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/.mailmap
Chris Howey <howeyc@gmail.com> <chris@howey.me> Nathan Youngman <git@nathany.com> <4566+nathany@users.noreply.github.com>
0
rapidsai_public_repos/roc/vendor/github.com/fsnotify
rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/inotify.go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build linux // +build linux package fsnotify import ( "errors" "fmt" "io" "os" "path/filepath" "strings" "sync" "unsafe" "golang.org/x/sys/unix...
0
rapidsai_public_repos/roc/vendor/github.com/fsnotify
rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/inotify_poller.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build linux // +build linux package fsnotify import ( "errors" "golang.org/x/sys/unix" ) type fdPoller struct { fd int // File descriptor (as r...
0
rapidsai_public_repos/roc/vendor/github.com/fsnotify
rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/.editorconfig
root = true [*.go] indent_style = tab indent_size = 4 insert_final_newline = true [*.{yml,yaml}] indent_style = space indent_size = 2 insert_final_newline = true trim_trailing_whitespace = true
0
rapidsai_public_repos/roc/vendor/github.com/fsnotify
rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/windows.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build windows // +build windows package fsnotify import ( "errors" "fmt" "os" "path/filepath" "runtime" "sync" "syscall" "unsafe" ) // Watcher w...
0
rapidsai_public_repos/roc/vendor/github.com/fsnotify
rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/README.md
# File system notifications for Go [![GoDoc](https://godoc.org/github.com/fsnotify/fsnotify?status.svg)](https://godoc.org/github.com/fsnotify/fsnotify) [![Go Report Card](https://goreportcard.com/badge/github.com/fsnotify/fsnotify)](https://goreportcard.com/report/github.com/fsnotify/fsnotify) fsnotify utilizes [gol...
0
rapidsai_public_repos/roc/vendor/github.com/fsnotify
rapidsai_public_repos/roc/vendor/github.com/fsnotify/fsnotify/CHANGELOG.md
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ## [1.5.1] - 2021-08-24 * Revert Add AddRaw to no...
0