package test

import "github.com/open-policy-agent/opa/v1/storage/inmem/test"

Index

Functions

func New

func New() storage.Store

New returns an inmem store with some common options set: opt-out of write roundtripping.

func NewFromObject

func NewFromObject(x map[string]interface{}) storage.Store

NewFromObject returns an inmem store from the passed object, with some common options set: opt-out of write roundtripping.

func NewFromObjectWithASTRead

func NewFromObjectWithASTRead(x map[string]interface{}) storage.Store

NewFromObjectWithASTRead returns an inmem store from the passed object, with round-trip on write disabled and AST values returned on read.

Source Files

testutil.go

Version
v1.4.2 (latest)
Published
May 2, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
2 weeks ago

Tools for package owners.