go.mod: runc v1.0.0
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
		 Akihiro Suda
					Akihiro Suda
				
			
				
					committed by
					
						 Davanum Srinivas
						Davanum Srinivas
					
				
			
			
				
	
			
			
			 Davanum Srinivas
						Davanum Srinivas
					
				
			
						parent
						
							28bb59c080
						
					
				
				
					commit
					f913a42755
				
			
							
								
								
									
										8
									
								
								vendor/github.com/google/go-cmp/cmp/cmpopts/equate.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/google/go-cmp/cmp/cmpopts/equate.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -11,7 +11,6 @@ import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/google/go-cmp/cmp" | ||||
| 	"golang.org/x/xerrors" | ||||
| ) | ||||
|  | ||||
| func equateAlways(_, _ interface{}) bool { return true } | ||||
| @@ -147,10 +146,3 @@ func areConcreteErrors(x, y interface{}) bool { | ||||
| 	_, ok2 := y.(error) | ||||
| 	return ok1 && ok2 | ||||
| } | ||||
|  | ||||
| func compareErrors(x, y interface{}) bool { | ||||
| 	xe := x.(error) | ||||
| 	ye := y.(error) | ||||
| 	// TODO(≥go1.13): Use standard definition of errors.Is. | ||||
| 	return xerrors.Is(xe, ye) || xerrors.Is(ye, xe) | ||||
| } | ||||
|   | ||||
							
								
								
									
										15
									
								
								vendor/github.com/google/go-cmp/cmp/cmpopts/errors_go113.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								vendor/github.com/google/go-cmp/cmp/cmpopts/errors_go113.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| // Copyright 2021, 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. | ||||
|  | ||||
| // +build go1.13 | ||||
|  | ||||
| package cmpopts | ||||
|  | ||||
| import "errors" | ||||
|  | ||||
| func compareErrors(x, y interface{}) bool { | ||||
| 	xe := x.(error) | ||||
| 	ye := y.(error) | ||||
| 	return errors.Is(xe, ye) || errors.Is(ye, xe) | ||||
| } | ||||
							
								
								
									
										18
									
								
								vendor/github.com/google/go-cmp/cmp/cmpopts/errors_xerrors.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								vendor/github.com/google/go-cmp/cmp/cmpopts/errors_xerrors.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| // Copyright 2021, 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. | ||||
|  | ||||
| // +build !go1.13 | ||||
|  | ||||
| // TODO(≥go1.13): For support on <go1.13, we use the xerrors package. | ||||
| // Drop this file when we no longer support older Go versions. | ||||
|  | ||||
| package cmpopts | ||||
|  | ||||
| import "golang.org/x/xerrors" | ||||
|  | ||||
| func compareErrors(x, y interface{}) bool { | ||||
| 	xe := x.(error) | ||||
| 	ye := y.(error) | ||||
| 	return xerrors.Is(xe, ye) || xerrors.Is(ye, xe) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user