Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
tests: Increase unit-test coverage for main.go
Browse files Browse the repository at this point in the history
Add new tests to raise the unit-test coverage for "main.go" from 0% to 98.5%.

Fixes #396.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Sep 7, 2017
1 parent 4d85e34 commit 8c8b651
Show file tree
Hide file tree
Showing 3 changed files with 550 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,16 @@ install-cc-system: install

define GENERATED_CODE
// WARNING: This file is auto-generated - DO NOT EDIT!
//
// Note that some variables are "var" to allow them to be modified
// by the tests.
package main

// commit is the git commit the runtime is compiled from.
const commit = "$(COMMIT)"
var commit = "$(COMMIT)"

// version is the runtime version.
const version = "$(VERSION)"
var version = "$(VERSION)"

const defaultHypervisorPath = "$(QEMUPATH)"
const defaultImagePath = "$(IMAGEPATH)"
Expand All @@ -198,7 +201,6 @@ const defaultVCPUCount uint32 = $(DEFVCPUS)
const defaultMemSize uint32 = $(DEFMEMSZ) // MiB
const defaultDisableBlockDeviceUse bool = $(DEFDISABLEBLOCK)

// Required to be modifiable (for the tests)
var defaultRuntimeConfiguration = "$(DESTCONFIG)"
var defaultProxyPath = "$(PROXYPATH)"
endef
Expand Down
Loading

0 comments on commit 8c8b651

Please sign in to comment.