fix tests
This commit is contained in:
		
							parent
							
								
									948fa0ddec
								
							
						
					
					
						commit
						d20e749038
					
				|  | @ -0,0 +1 @@ | ||||||
|  | package capture | ||||||
|  | @ -5,12 +5,12 @@ import ( | ||||||
| 	"os/signal" | 	"os/signal" | ||||||
| 	"syscall" | 	"syscall" | ||||||
| 
 | 
 | ||||||
|  | 	"dev.sum7.eu/genofire/golang-lib/file" | ||||||
| 	"github.com/bdlm/log" | 	"github.com/bdlm/log" | ||||||
| 	"github.com/spf13/cobra" | 	"github.com/spf13/cobra" | ||||||
| 	"dev.sum7.eu/genofire/golang-lib/file" |  | ||||||
| 
 | 
 | ||||||
| 	"dev.sum7.eu/genofire/wifictld-analyzer/config" |  | ||||||
| 	"dev.sum7.eu/genofire/wifictld-analyzer/capture" | 	"dev.sum7.eu/genofire/wifictld-analyzer/capture" | ||||||
|  | 	"dev.sum7.eu/genofire/wifictld-analyzer/config" | ||||||
| 	"dev.sum7.eu/genofire/wifictld-analyzer/controller" | 	"dev.sum7.eu/genofire/wifictld-analyzer/controller" | ||||||
| 	"dev.sum7.eu/genofire/wifictld-analyzer/database" | 	"dev.sum7.eu/genofire/wifictld-analyzer/database" | ||||||
| ) | ) | ||||||
|  |  | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | package cmd | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | package config | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | package controller | ||||||
|  | @ -24,7 +24,7 @@ const ( | ||||||
| func (a SocketMSGType) Is(b SocketMSGType) bool { | func (a SocketMSGType) Is(b SocketMSGType) bool { | ||||||
| 	if DEBUG { | 	if DEBUG { | ||||||
| 
 | 
 | ||||||
| 		log.Debugf("SocketType: %x & %x = %x -> %b", a, b, (a & b), (a&b) > 0) | 		log.Debugf("SocketType: %x & %x = %x -> %t", a, b, (a & b), (a&b) > 0) | ||||||
| 	} | 	} | ||||||
| 	return (a & b) > 0 | 	return (a & b) > 0 | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -2,13 +2,20 @@ package data | ||||||
| 
 | 
 | ||||||
| import ( | import ( | ||||||
| 	"encoding/hex" | 	"encoding/hex" | ||||||
| 	"log" |  | ||||||
| 	"testing" | 	"testing" | ||||||
| 	"time" | 	"time" | ||||||
| 
 | 
 | ||||||
| 	"github.com/stretchr/testify/assert" | 	"github.com/stretchr/testify/assert" | ||||||
|  | 
 | ||||||
|  | 	"github.com/bdlm/log" | ||||||
|  | 	"github.com/bdlm/std/logger" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
|  | func init() { | ||||||
|  | 	DEBUG = true | ||||||
|  | 	log.SetLevel(logger.Debug) | ||||||
|  | } | ||||||
|  | 
 | ||||||
| func TestMsgIsTypes(t *testing.T) { | func TestMsgIsTypes(t *testing.T) { | ||||||
| 	assert := assert.New(t) | 	assert := assert.New(t) | ||||||
| 	types := SocketMSGType(5) | 	types := SocketMSGType(5) | ||||||
|  |  | ||||||
|  | @ -0,0 +1 @@ | ||||||
|  | package database | ||||||
		Loading…
	
		Reference in New Issue