OpenSim
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | List of all members
OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.CompilerTest Class Reference

Tests the LSL compiler. Among other things, test that error messages generated by the C# compiler can be mapped to prper lines/columns in the LSL source. More...

Inheritance diagram for OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.CompilerTest:
Inheritance graph
[legend]
Collaboration diagram for OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.CompilerTest:
Collaboration graph
[legend]

Public Member Functions

void Init ()
 Creates a temporary directory where build artifacts are stored. More...
 
override void SetUp ()
 
void CleanUp ()
 Removes the temporary build directory and any build artifacts inside it. More...
 
void TestJumpAndSyntaxError ()
 Test that line number errors are resolved as expected when preceding code contains a jump. More...
 
void TestUseUndeclaredVariable ()
 Test the C# compiler error message can be mapped to the correct line/column in the LSL source when an undeclared variable is used. More...
 
void TestCastAndConcatString ()
 Test that a string can be cast to string and another string concatenated. More...
 

Detailed Description

Tests the LSL compiler. Among other things, test that error messages generated by the C# compiler can be mapped to prper lines/columns in the LSL source.

Definition at line 46 of file CompilerTest.cs.

Member Function Documentation

void OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.CompilerTest.CleanUp ( )
inline

Removes the temporary build directory and any build artifacts inside it.

Definition at line 95 of file CompilerTest.cs.

void OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.CompilerTest.Init ( )
inline

Creates a temporary directory where build artifacts are stored.

Definition at line 58 of file CompilerTest.cs.

override void OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.CompilerTest.SetUp ( )
inlinevirtual

Reimplemented from OpenSim.Tests.Common.OpenSimTestCase.

Definition at line 70 of file CompilerTest.cs.

Here is the call graph for this function:

void OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.CompilerTest.TestCastAndConcatString ( )
inline

Test that a string can be cast to string and another string concatenated.

Definition at line 192 of file CompilerTest.cs.

void OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.CompilerTest.TestJumpAndSyntaxError ( )
inline

Test that line number errors are resolved as expected when preceding code contains a jump.

Definition at line 140 of file CompilerTest.cs.

void OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.CompilerTest.TestUseUndeclaredVariable ( )
inline

Test the C# compiler error message can be mapped to the correct line/column in the LSL source when an undeclared variable is used.

Definition at line 167 of file CompilerTest.cs.


The documentation for this class was generated from the following file: