< Summary

Class:MoonController
Assembly:Assembly-CSharp
File(s):D:/--UnityProject/VR/_____ISSTA 26/Island-Visualizer-PCVR/Assets/Scripts/Test/MoonController.cs
Covered lines:7
Uncovered lines:0
Coverable lines:7
Total lines:22
Line coverage:100% (7 of 7)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:2
Method coverage:100% (2 of 2)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Start()0%000100%
Update()0%000100%

File(s)

D:/--UnityProject/VR/_____ISSTA 26/Island-Visualizer-PCVR/Assets/Scripts/Test/MoonController.cs

#LineLine coverage
 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5public class MoonController : MonoBehaviour
 6{
 7    public Transform player;
 8
 9    // Start is called before the first frame update
 10    void Start()
 211    {
 12
 213    }
 14
 15    // Update is called once per frame
 16    void Update()
 20517    {
 20518        Vector3 directionToPlayer = player.position - transform.position;
 20519        Quaternion rotationToPlayer = Quaternion.LookRotation(directionToPlayer);
 20520        transform.rotation = rotationToPlayer;
 20521    }
 22}

Methods/Properties

Start()
Update()