testing/md/mockdata.go

27 lines
498 B
Go
Raw Normal View History

2024-05-08 20:28:36 +00:00
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
2024-05-08 21:08:10 +00:00
2024-05-08 20:28:36 +00:00
package mockdata
import (
// "testing"
// "io/ioutil"
// "path/filepath"
// "log"
// "fmt"
// "strings"
// "strconv"
2024-05-08 21:08:10 +00:00
"testing/fixture"
2024-05-08 20:28:36 +00:00
)
// Raw file fixture data
func FixtureMockFile(p fixture.Param) interface{} {
mp := p.(MockParam)
return Read(mp.param.(string), mp.mock())
}
func ResultMockFile(p fixture.Result) interface{} {
mp := p.(MockParam)
return Read(mp.param.(string), mp.mock())
}