Skip to content

Commit dcd0f69

Browse files
committed
Distinguish function/computer test ops
1 parent 3fba5b9 commit dcd0f69

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

‎imagej/imagej-ops2/src/test/java/net/imagej/ops2/types/adapt/LiftComputersToRAITest.java‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,27 @@
4444
public class LiftComputersToRAITest<I extends RealType<I>, O extends RealType<O>> extends AbstractOpTest {
4545

4646
/**
47-
* @implNote op names='test.liftImg'
47+
* @implNote op names='test.computer.liftImg'
4848
*/
4949
public final Computers.Arity1<I, O> testOp = (in, out) -> out.setReal(10.);
5050

5151
/**
52-
* @implNote op names='test.liftImg'
52+
* @implNote op names='test.computer.liftImg'
5353
*/
5454
public final Computers.Arity2<I, I, O> testOp2 = (in1, in2, out) -> out.setReal(20.);
5555

5656
/**
57-
* @implNote op names='test.liftImg'
57+
* @implNote op names='test.computer.liftImg'
5858
*/
5959
public final Computers.Arity3<I, I, I, O> testOp3 = (in1, in2, in3, out) -> out.setReal(30.);
6060

6161
/**
62-
* @implNote op names='test.liftImg'
62+
* @implNote op names='test.computer.liftImg'
6363
*/
6464
public final Computers.Arity4<I, I, I, I, O> testOp4 = (in1, in2, in3, in4, out) -> out.setReal(40.);
6565

6666
/**
67-
* @implNote op names='test.liftImg'
67+
* @implNote op names='test.computer.liftImg'
6868
*/
6969
public final Computers.Arity5<I, I, I, I, I, O> testOp5 = (in1, in2, in3, in4, in5, out) -> out.setReal(50.);
7070

@@ -73,7 +73,7 @@ public void testLiftComputer1ToRAI() {
7373
RandomAccessibleInterval<DoubleType> input = ops.op("create.img").arity2().input(new FinalDimensions(3, 3), new DoubleType()).outType(new Nil<Img<DoubleType>>() {}).apply();
7474
RandomAccessibleInterval<DoubleType> output = ops.op("create.img").arity2().input(new FinalDimensions(3, 3), new DoubleType()).outType(new Nil<Img<DoubleType>>() {}).apply();
7575

76-
ops.op("test.liftImg").arity1().input(input).output(output).compute();
76+
ops.op("test.computer.liftImg").arity1().input(input).output(output).compute();
7777

7878
Cursor<DoubleType> cursor = Views.flatIterable(output).cursor();
7979
while(cursor.hasNext()) {
@@ -87,7 +87,7 @@ public void testLiftComputer2ToRAI() {
8787
RandomAccessibleInterval<DoubleType> input = ops.op("create.img").arity2().input(new FinalDimensions(3, 3), new DoubleType()).outType(new Nil<Img<DoubleType>>() {}).apply();
8888
RandomAccessibleInterval<DoubleType> output = ops.op("create.img").arity2().input(new FinalDimensions(3, 3), new DoubleType()).outType(new Nil<Img<DoubleType>>() {}).apply();
8989

90-
ops.op("test.liftImg").arity2().input(input, input).output(output).compute();
90+
ops.op("test.computer.liftImg").arity2().input(input, input).output(output).compute();
9191

9292
Cursor<DoubleType> cursor = Views.flatIterable(output).cursor();
9393
while(cursor.hasNext()) {
@@ -101,7 +101,7 @@ public void testLiftComputer3ToRAI() {
101101
RandomAccessibleInterval<DoubleType> input = ops.op("create.img").arity2().input(new FinalDimensions(3, 3), new DoubleType()).outType(new Nil<Img<DoubleType>>() {}).apply();
102102
RandomAccessibleInterval<DoubleType> output = ops.op("create.img").arity2().input(new FinalDimensions(3, 3), new DoubleType()).outType(new Nil<Img<DoubleType>>() {}).apply();
103103

104-
ops.op("test.liftImg").arity3().input(input, input, input).output(output).compute();
104+
ops.op("test.computer.liftImg").arity3().input(input, input, input).output(output).compute();
105105

106106
Cursor<DoubleType> cursor = Views.flatIterable(output).cursor();
107107
while(cursor.hasNext()) {
@@ -115,7 +115,7 @@ public void testLiftComputer4ToRAI() {
115115
RandomAccessibleInterval<DoubleType> input = ops.op("create.img").arity2().input(new FinalDimensions(3, 3), new DoubleType()).outType(new Nil<Img<DoubleType>>() {}).apply();
116116
RandomAccessibleInterval<DoubleType> output = ops.op("create.img").arity2().input(new FinalDimensions(3, 3), new DoubleType()).outType(new Nil<Img<DoubleType>>() {}).apply();
117117

118-
ops.op("test.liftImg").arity4().input(input, input, input, input).output(output).compute();
118+
ops.op("test.computer.liftImg").arity4().input(input, input, input, input).output(output).compute();
119119

120120
Cursor<DoubleType> cursor = Views.flatIterable(output).cursor();
121121
while(cursor.hasNext()) {
@@ -129,7 +129,7 @@ public void testLiftComputer5ToRAI() {
129129
RandomAccessibleInterval<DoubleType> input = ops.op("create.img").arity2().input(new FinalDimensions(3, 3), new DoubleType()).outType(new Nil<Img<DoubleType>>() {}).apply();
130130
RandomAccessibleInterval<DoubleType> output = ops.op("create.img").arity2().input(new FinalDimensions(3, 3), new DoubleType()).outType(new Nil<Img<DoubleType>>() {}).apply();
131131

132-
ops.op("test.liftImg").arity5().input(input, input, input, input, input).output(output).compute();
132+
ops.op("test.computer.liftImg").arity5().input(input, input, input, input, input).output(output).compute();
133133

134134
Cursor<DoubleType> cursor = Views.flatIterable(output).cursor();
135135
while(cursor.hasNext()) {

‎imagej/imagej-ops2/src/test/java/net/imagej/ops2/types/adapt/LiftFunctionsToRAITest.java‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,30 @@ public class LiftFunctionsToRAITest<I extends RealType<I>> extends
5050
{
5151

5252
/**
53-
* @implNote op names='test.liftImg'
53+
* @implNote op names='test.function.liftImg'
5454
*/
5555
public final Function<I, DoubleType> testOp = (in) -> new DoubleType(10d);
5656

5757
/**
58-
* @implNote op names='test.liftImg'
58+
* @implNote op names='test.function.liftImg'
5959
*/
6060
public final BiFunction<I, I, DoubleType> testOp2 = (in1,
6161
in2) -> new DoubleType(20d);
6262

6363
/**
64-
* @implNote op names='test.liftImg'
64+
* @implNote op names='test.function.liftImg'
6565
*/
6666
public final Functions.Arity3<I, I, I, DoubleType> testOp3 = (in1, in2,
6767
in3) -> new DoubleType(30d);
6868

6969
/**
70-
* @implNote op names='test.liftImg'
70+
* @implNote op names='test.function.liftImg'
7171
*/
7272
public final Functions.Arity4<I, I, I, I, DoubleType> testOp4 = (in1, in2,
7373
in3, in4) -> new DoubleType(40d);
7474

7575
/**
76-
* @implNote op names='test.liftImg'
76+
* @implNote op names='test.function.liftImg'
7777
*/
7878
public final Functions.Arity5<I, I, I, I, I, DoubleType> testOp5 = (in1, in2,
7979
in3, in4, in5) -> new DoubleType(50d);
@@ -85,7 +85,7 @@ public void testLiftFunction1ToRAI() {
8585
new Nil<Img<DoubleType>>()
8686
{}).apply();
8787

88-
RandomAccessibleInterval<DoubleType> output = ops.op("test.liftImg").arity1()
88+
RandomAccessibleInterval<DoubleType> output = ops.op("test.function.liftImg").arity1()
8989
.input(
9090
input).outType(new Nil<RandomAccessibleInterval<DoubleType>>()
9191
{}).apply();
@@ -104,7 +104,7 @@ public void testLiftFunction2ToRAI() {
104104
new Nil<Img<DoubleType>>()
105105
{}).apply();
106106

107-
RandomAccessibleInterval<DoubleType> output = ops.op("test.liftImg").arity2().input(
107+
RandomAccessibleInterval<DoubleType> output = ops.op("test.function.liftImg").arity2().input(
108108
input, input).outType(new Nil<RandomAccessibleInterval<DoubleType>>()
109109
{}).apply();
110110

@@ -122,7 +122,7 @@ public void testLiftFunction3ToRAI() {
122122
new Nil<Img<DoubleType>>()
123123
{}).apply();
124124

125-
RandomAccessibleInterval<DoubleType> output = ops.op("test.liftImg").arity3().input(
125+
RandomAccessibleInterval<DoubleType> output = ops.op("test.function.liftImg").arity3().input(
126126
input, input, input).outType(
127127
new Nil<RandomAccessibleInterval<DoubleType>>()
128128
{}).apply();
@@ -141,7 +141,7 @@ public void testLiftFunction4ToRAI() {
141141
new Nil<Img<DoubleType>>()
142142
{}).apply();
143143

144-
RandomAccessibleInterval<DoubleType> output = ops.op("test.liftImg").arity4().input(
144+
RandomAccessibleInterval<DoubleType> output = ops.op("test.function.liftImg").arity4().input(
145145
input, input, input, input).outType(
146146
new Nil<RandomAccessibleInterval<DoubleType>>()
147147
{}).apply();
@@ -160,7 +160,7 @@ public void testLiftFunction5ToRAI() {
160160
new Nil<Img<DoubleType>>()
161161
{}).apply();
162162

163-
RandomAccessibleInterval<DoubleType> output = ops.op("test.liftImg").arity5().input(
163+
RandomAccessibleInterval<DoubleType> output = ops.op("test.function.liftImg").arity5().input(
164164
input, input, input, input, input).outType(
165165
new Nil<RandomAccessibleInterval<DoubleType>>()
166166
{}).apply();

0 commit comments

Comments
 (0)