mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:52:30 -05:00 
			
		
		
		
	[chore]: Bump github.com/google/go-cmp from 0.6.0 to 0.7.0 (#3826)
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.6.0 to 0.7.0. - [Release notes](https://github.com/google/go-cmp/releases) - [Commits](https://github.com/google/go-cmp/compare/v0.6.0...v0.7.0) --- updated-dependencies: - dependency-name: github.com/google/go-cmp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								d8c027f8af
							
						
					
				
			
			
				commit
				
					
						f1af6a572d
					
				
			
		
					 5 changed files with 21 additions and 5 deletions
				
			
		
							
								
								
									
										2
									
								
								go.mod
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
										
									
									
									
								
							|  | @ -38,7 +38,7 @@ require ( | |||
| 	github.com/gin-gonic/gin v1.10.0 | ||||
| 	github.com/go-playground/form/v4 v4.2.1 | ||||
| 	github.com/go-swagger/go-swagger v0.31.0 | ||||
| 	github.com/google/go-cmp v0.6.0 | ||||
| 	github.com/google/go-cmp v0.7.0 | ||||
| 	github.com/google/uuid v1.6.0 | ||||
| 	github.com/gorilla/feeds v1.2.0 | ||||
| 	github.com/gorilla/websocket v1.5.3 | ||||
|  |  | |||
							
								
								
									
										3
									
								
								go.sum
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										3
									
								
								go.sum
									
										
									
										generated
									
									
									
								
							|  | @ -285,8 +285,9 @@ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ | |||
| github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= | ||||
| github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= | ||||
| github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= | ||||
| github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= | ||||
| github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= | ||||
| github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= | ||||
| github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= | ||||
|  |  | |||
							
								
								
									
										7
									
								
								vendor/github.com/google/go-cmp/cmp/internal/function/func.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/github.com/google/go-cmp/cmp/internal/function/func.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -19,6 +19,7 @@ const ( | |||
| 
 | ||||
| 	tbFunc  // func(T) bool | ||||
| 	ttbFunc // func(T, T) bool | ||||
| 	ttiFunc // func(T, T) int | ||||
| 	trbFunc // func(T, R) bool | ||||
| 	tibFunc // func(T, I) bool | ||||
| 	trFunc  // func(T) R | ||||
|  | @ -28,11 +29,13 @@ const ( | |||
| 	Transformer       = trFunc  // func(T) R | ||||
| 	ValueFilter       = ttbFunc // func(T, T) bool | ||||
| 	Less              = ttbFunc // func(T, T) bool | ||||
| 	Compare           = ttiFunc // func(T, T) int | ||||
| 	ValuePredicate    = tbFunc  // func(T) bool | ||||
| 	KeyValuePredicate = trbFunc // func(T, R) bool | ||||
| ) | ||||
| 
 | ||||
| var boolType = reflect.TypeOf(true) | ||||
| var intType = reflect.TypeOf(0) | ||||
| 
 | ||||
| // IsType reports whether the reflect.Type is of the specified function type. | ||||
| func IsType(t reflect.Type, ft funcType) bool { | ||||
|  | @ -49,6 +52,10 @@ func IsType(t reflect.Type, ft funcType) bool { | |||
| 		if ni == 2 && no == 1 && t.In(0) == t.In(1) && t.Out(0) == boolType { | ||||
| 			return true | ||||
| 		} | ||||
| 	case ttiFunc: // func(T, T) int | ||||
| 		if ni == 2 && no == 1 && t.In(0) == t.In(1) && t.Out(0) == intType { | ||||
| 			return true | ||||
| 		} | ||||
| 	case trbFunc: // func(T, R) bool | ||||
| 		if ni == 2 && no == 1 && t.Out(0) == boolType { | ||||
| 			return true | ||||
|  |  | |||
							
								
								
									
										10
									
								
								vendor/github.com/google/go-cmp/cmp/options.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/github.com/google/go-cmp/cmp/options.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -232,7 +232,15 @@ func (validator) apply(s *state, vx, vy reflect.Value) { | |||
| 		if t := s.curPath.Index(-2).Type(); t.Name() != "" { | ||||
| 			// Named type with unexported fields. | ||||
| 			name = fmt.Sprintf("%q.%v", t.PkgPath(), t.Name()) // e.g., "path/to/package".MyType | ||||
| 			if _, ok := reflect.New(t).Interface().(error); ok { | ||||
| 			isProtoMessage := func(t reflect.Type) bool { | ||||
| 				m, ok := reflect.PointerTo(t).MethodByName("ProtoReflect") | ||||
| 				return ok && m.Type.NumIn() == 1 && m.Type.NumOut() == 1 && | ||||
| 					m.Type.Out(0).PkgPath() == "google.golang.org/protobuf/reflect/protoreflect" && | ||||
| 					m.Type.Out(0).Name() == "Message" | ||||
| 			} | ||||
| 			if isProtoMessage(t) { | ||||
| 				help = `consider using "google.golang.org/protobuf/testing/protocmp".Transform to compare proto.Message types` | ||||
| 			} else if _, ok := reflect.New(t).Interface().(error); ok { | ||||
| 				help = "consider using cmpopts.EquateErrors to compare error values" | ||||
| 			} else if t.Comparable() { | ||||
| 				help = "consider using cmpopts.EquateComparable to compare comparable Go types" | ||||
|  |  | |||
							
								
								
									
										4
									
								
								vendor/modules.txt
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/modules.txt
									
										
									
									
										vendored
									
									
								
							|  | @ -328,8 +328,8 @@ github.com/golang/geo/r2 | |||
| github.com/golang/geo/r3 | ||||
| github.com/golang/geo/s1 | ||||
| github.com/golang/geo/s2 | ||||
| # github.com/google/go-cmp v0.6.0 | ||||
| ## explicit; go 1.13 | ||||
| # github.com/google/go-cmp v0.7.0 | ||||
| ## explicit; go 1.21 | ||||
| github.com/google/go-cmp/cmp | ||||
| github.com/google/go-cmp/cmp/internal/diff | ||||
| github.com/google/go-cmp/cmp/internal/flags | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue