Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ repos:
description: ensures that links to vcs websites are permalinks
- id: end-of-file-fixer
description: makes sure files end in a newline and only a newline
files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|old|pas|php|pl|pm|pmk|properties|props|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$|^ext_libraries/.*$|^test/.*$
files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cs|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|old|pas|php|pl|pm|pmk|properties|props|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$|^ext_libraries/.*$|^test/.*$
- id: fix-byte-order-marker
description: removes UTF-8 byte order marker
- id: mixed-line-ending
description: replaces or checks mixed line ending
files: \.(asm|asp|bas|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|old|pas|php|pl|pm|pmk|properties|props|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$|^test/testgui/.*$
files: \.(asm|asp|bas|c|cl|cmd|common|component|cpp|cs|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|old|pas|php|pl|pm|pmk|properties|props|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$|^test/testgui/.*$
- id: trailing-whitespace
description: trims trailing whitespace
files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|old|pas|php|pl|pm|pmk|properties|props|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$
files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cs|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|old|pas|php|pl|pm|pmk|properties|props|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
Expand Down
56 changes: 28 additions & 28 deletions main/cli_ure/qa/climaker/climaker.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
/**************************************************************
*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*
*************************************************************/


Expand All @@ -42,13 +42,13 @@ public enum test_kind {
TEST_EXCEPTION,
CREATION_FAILED
}

public Context(test_kind k, params object[] args)
{
kind = k;
factory = new Factory(k, args);
}

public ucss.lang.XMultiComponentFactory getServiceManager()
{
if (kind == test_kind.NO_FACTORY)
Expand Down Expand Up @@ -130,7 +130,7 @@ public class Logger
int m_nErrors;
public Logger() {
}

public String Function
{
set
Expand All @@ -142,7 +142,7 @@ public String Function
return m_sFunction;
}
}

public void assure(bool b) {
if (b == false)
{
Expand All @@ -154,7 +154,7 @@ public void assure(bool b) {
public void printStatus() {
Console.WriteLine("\n=====================================");


String msg;
if (m_nErrors > 0)
msg = "Test failed! " + m_nErrors.ToString() + " Errors.";
Expand All @@ -177,7 +177,7 @@ public sealed class Test
{
public static int Main(String[] args)
{

// System.Diagnostics.Debugger.Launch();
try
{
Expand Down Expand Up @@ -327,7 +327,7 @@ public void testEmptyStruct2(Logger l) {
l.assure(s.at17.Length == 0);
l.assure(s.at18.Length == 0);
}

public void testFullStruct2(Logger l) {
//TODO:
Struct2 s = new Struct2(
Expand Down Expand Up @@ -463,10 +463,10 @@ public void testS1(Logger l) {
new ucss.uno.DeploymentException("DeploymentException", obj);
ucss.lang.InvalidListenerException excInvalidListener =
new ucss.lang.InvalidListenerException("ListenerException", obj);

/* create1 does not specify exceptions. Therefore RuntimeExceptions
fly through and other exceptions cause a DeploymentException.
*/
*/
try {
S1.create1(new Context(Context.test_kind.TEST_EXCEPTION, excRuntime));
} catch (ucss.uno.RuntimeException e) {
Expand All @@ -476,7 +476,7 @@ fly through and other exceptions cause a DeploymentException.
l.assure(false);
}

Context c = new Context(Context.test_kind.TEST_EXCEPTION, excException);
Context c = new Context(Context.test_kind.TEST_EXCEPTION, excException);
try {
S1.create1(c);
} catch (ucss.uno.DeploymentException e) {
Expand Down Expand Up @@ -808,7 +808,7 @@ exceptions cause a DeploymentException.
//test
c = new Context(Context.test_kind.NORMAL);
try {

PolyStruct2 arg1 = new PolyStruct2(typeof(PolyStruct2), 1);
PolyStruct2 arg2 = new PolyStruct2(new Any(true), 1);
PolyStruct2 arg3 = new PolyStruct2(true, 1);
Expand Down Expand Up @@ -1008,12 +1008,12 @@ exceptions cause a DeploymentException.
l.assure( sType == "unoidl.test.cliure.climaker.PolyStruct<" +
"unoidl.test.cliure.climaker.PolyStruct<System.Char,uno.Any>," +
"unoidl.test.cliure.climaker.PolyStruct2<System.Char>>[][]");
}
catch (Exception)




}
catch (Exception)
{
l.assure(false);
}
Expand Down Expand Up @@ -1070,7 +1070,7 @@ void testAttributes(Logger l)
}
else
l.assure(false);

//function test must not have the oneway attribute and Exception attribute
arAttr = typeXTest.GetMethod("test").GetCustomAttributes(false);
l.assure(arAttr.Length == 0);
Expand Down Expand Up @@ -1169,8 +1169,8 @@ void testPolyStructAttributes(Logger l)
else
l.assure(false);

//test instantiated polymorphic struct: return value

//test instantiated polymorphic struct: return value
// Type typeXTest = typeof(XTest);
// arAttr = typeXTest.GetMethod("testPolyStruct").ReturnTypeCustomAttributes.GetCustomAttributes(false);
// if (arAttr.Length == 1)
Expand Down Expand Up @@ -1201,7 +1201,7 @@ void testPolymorphicType(Logger l)
l.assure(t1 == t2);
l.assure(t1.PolymorphicName == name);
l.assure(t1.OriginalType == typeof(unoidl.test.cliure.climaker.PolyStruct));

}

void testInterface(Logger l)
Expand Down Expand Up @@ -1229,7 +1229,7 @@ void testInterface(Logger l)
object aXInterface = new object();
ucss.lang.XComponent aXComponent = (ucss.lang.XComponent) obj;
bool[] aSeqBool = {true, false, true};

obj.inParameters(aBool, aByte, aShort, aUShort,
aInt, aUInt, aLong, aULong,
aFloat, aDouble, aChar, aString,
Expand Down Expand Up @@ -1308,7 +1308,7 @@ void testInterface(Logger l)
ref inoutFloat, ref inoutDouble, ref inoutChar, ref inoutString,
ref inoutType, ref inoutAny, ref inoutEnum2, ref inoutStruct1,
ref inoutXInterface, ref inoutXComponent, ref inoutSeqBool);

l.assure(aBool == inoutBool);
l.assure(aByte == inoutByte);
l.assure(aShort == inoutShort);
Expand Down Expand Up @@ -1425,7 +1425,7 @@ public void testAny(Logger l)
{
l.assure(e.Message.IndexOf("Any") != -1);
}


try
{
Expand Down
Loading