< Summary

Class:TeleportController
Assembly:DCL.Runtime
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/TeleportController/TeleportController.cs
Covered lines:2
Uncovered lines:10
Coverable lines:12
Total lines:50
Line coverage:16.6% (2 of 12)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:7
Method coverage:28.5% (2 of 7)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Teleport(...)0%2100%
JumpIn(...)0%2100%
GoToCrowd()0%2100%
JumpInWorld(...)0%2100%
GoToMagic()0%2100%
Dispose()0%110100%
Initialize()0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/WorldRuntime/TeleportController/TeleportController.cs

#LineLine coverage
 1using System;
 2using System.Collections;
 3using DCL;
 4using DCL.Interface;
 5using UnityEngine;
 6
 7public class TeleportController : ITeleportController
 8{
 9
 10    public void Teleport(int x, int y)
 11    {
 012        WebInterface.GoTo(x, y);
 013    }
 14
 15    public void JumpIn(int coordsX, int coordsY, string serverName, string layerName)
 16    {
 017        WebInterface.JumpIn(coordsX, coordsY, serverName, layerName);
 018    }
 19
 20    public void GoToCrowd()
 21    {
 022        WebInterface.GoToCrowd();
 023    }
 24
 25    public void JumpInWorld(string worldName)
 26    {
 027        WebInterface.SendChatMessage(new ChatMessage
 28        {
 29            messageType = ChatMessage.Type.NONE,
 30            recipient = string.Empty,
 31            body = $"/changerealm {worldName}"
 32        });
 033    }
 34
 35    public void GoToMagic()
 36    {
 037        WebInterface.GoToMagic();
 038    }
 39
 40    public void Dispose()
 41    {
 42542    }
 43
 44    public void Initialize()
 45    {
 46
 42547    }
 48
 49}
 50