More coverage tuning

This commit is contained in:
Dave Shanley
2023-03-26 06:04:11 -04:00
parent 33bd9621c5
commit 1bc04418db
4 changed files with 22 additions and 24 deletions

View File

@@ -0,0 +1,21 @@
// Copyright 2023 Princess B33f Heavy Industries / Dave Shanley
// SPDX-License-Identifier: MIT
package datamodel
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestNewClosedDocumentConfiguration(t *testing.T) {
cfg := NewClosedDocumentConfiguration()
assert.False(t, cfg.AllowRemoteReferences)
assert.False(t, cfg.AllowFileReferences)
}
func TestNewOpenDocumentConfiguration(t *testing.T) {
cfg := NewOpenDocumentConfiguration()
assert.True(t, cfg.AllowRemoteReferences)
assert.True(t, cfg.AllowFileReferences)
}