assessment

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RichClient *binding.RichClient
	Assessment binding.Assessment
)
View Source
var (
	ApplicationAssessment1 = api.Assessment{

		Application: &api.Ref{
			Name: application.Minimal.Name,
		},
		Questionnaire: api.Ref{
			Name: questionnaire.Questionnaire1.Name,
		},
		Sections: []assessment.Section{
			{
				Order: uint2ptr(1),
				Name:  "Section 1",
				Questions: []assessment.Question{
					{
						Order:       uint2ptr(1),
						Text:        "What is your favorite color?",
						Explanation: "Please tell us your favorite color.",
						Answers: []assessment.Answer{
							{
								Order: uint2ptr(1),
								Text:  "Red",
								Risk:  "red",
							},
							{
								Order: uint2ptr(2),
								Text:  "Green",
								Risk:  "green",
							},
							{
								Order:    uint2ptr(3),
								Text:     "Blue",
								Risk:     "yellow",
								Selected: true,
							},
						},
					},
				},
			},
		},
	}
	Samples = []api.Assessment{ApplicationAssessment1}
)

Set of valid resources for tests and reuse.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL