From 33bd9621c503b6822a8d9c3089a1dffbe8c328e3 Mon Sep 17 00:00:00 2001 From: Dave Shanley Date: Sun, 26 Mar 2023 05:51:11 -0400 Subject: [PATCH] Small coverage bump. --- datamodel/high/base/schema_proxy_test.go | 2 ++ datamodel/low/v3/path_item.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/datamodel/high/base/schema_proxy_test.go b/datamodel/high/base/schema_proxy_test.go index 1b9ee7a..37b471b 100644 --- a/datamodel/high/base/schema_proxy_test.go +++ b/datamodel/high/base/schema_proxy_test.go @@ -57,10 +57,12 @@ func TestSchemaProxy_MarshalYAML(t *testing.T) { func TestCreateSchemaProxy(t *testing.T) { sp := CreateSchemaProxy(&Schema{Description: "iAmASchema"}) assert.Equal(t, "iAmASchema", sp.rendered.Description) + assert.False(t, sp.IsReference()) } func TestCreateSchemaProxyRef(t *testing.T) { sp := CreateSchemaProxyRef("#/components/schemas/MySchema") assert.Equal(t, "#/components/schemas/MySchema", sp.GetReference()) + assert.True(t, sp.IsReference()) } diff --git a/datamodel/low/v3/path_item.go b/datamodel/low/v3/path_item.go index f2c910a..c178bd2 100644 --- a/datamodel/low/v3/path_item.go +++ b/datamodel/low/v3/path_item.go @@ -1,4 +1,4 @@ -// Copyright 2022 Princess B33f Heavy Industries / Dave Shanley +// Copyright 2022-2023 Princess B33f Heavy Industries / Dave Shanley // SPDX-License-Identifier: MIT package v3