Skip to content

Commit

Permalink
Drivers: specify not windows on test files
Browse files Browse the repository at this point in the history
  • Loading branch information
deven96 committed Oct 18, 2021
1 parent e582305 commit e048f0b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.16.x, 1.17.x]
go-version: [1.16.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
6 changes: 6 additions & 0 deletions driver/driver.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
package driver

import "github.com/bisoncorps/saido/inspector"

type fields struct {
supported []inspector.Inspector
}

// Driver : specification of functions to be defined by every Driver
type Driver interface {
readFile(path string) (string, error)
Expand Down
4 changes: 3 additions & 1 deletion driver/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ import (
)

// Local : Driver for handling local executions
type Local struct{}
type Local struct {
fields
}

func (d *Local) readFile(path string) (string, error) {
log.Debugf("Reading content from %s", path)
Expand Down
2 changes: 2 additions & 0 deletions driver/local_unix_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build !windows

package driver

import (
Expand Down
4 changes: 4 additions & 0 deletions inspector/inspector.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package inspector

// Inspector : defines a particular metric supported by a driver
type Inspector interface{}

0 comments on commit e048f0b

Please sign in to comment.