27 lines
498 B
Go
27 lines
498 B
Go
// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
|
|
|
|
package mockdata
|
|
|
|
import (
|
|
// "testing"
|
|
// "io/ioutil"
|
|
// "path/filepath"
|
|
// "log"
|
|
// "fmt"
|
|
// "strings"
|
|
// "strconv"
|
|
"testing/fixture"
|
|
)
|
|
|
|
// 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())
|
|
}
|